Module generator

generator
Version:
0.0.1
License:
MIT
Dependencies from vmod:
2
Imports:
4
Imported by:
2
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

  • srackham.pcre2
  • markdown

Imports

Imported by

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

This section is empty.

Structs

#struct Context

pub struct Context {
pub mut:
	buf strings.Builder
}

Interfaces

#interface Generator

pub interface Generator {
	mode GenerateMode
	generate()
	generate_module(mod mods.Module)
	generate_alias(alias symbols.Alias)
	generate_function(fun symbols.Function)
	generate_method(method symbols.Method)
	generate_struct(strukt symbols.Struct)
	generate_enum(enums symbols.Enum)
	generate_interface(iface symbols.Interface)
	generate_type(table &ast.Table, typ ast.Type)
	generate_universe_page(universe mods.Universe)
}

Generator is the interface that responsible for generating documentation parts.

Enums

#enum GenerateMode

pub enum GenerateMode {
	simple
	serve
}