Documentation
¶
Overview ¶
Package codegen exposes utilities to build and test code generators that build go apps.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package formatting formats generated Go source.
|
Package formatting formats generated Go source. |
|
internal/rules
Package rules holds the formatting rules an enable module registers.
|
Package rules holds the formatting rules an enable module registers. |
|
internal/std
Package std answers which name a standard library import declares.
|
Package std answers which name a standard library import declares. |
|
resolve
Package resolve reads the name each imported package declares.
|
Package resolve reads the name each imported package declares. |
|
Package funcmaps exposes utilities to work with template.FuncMap.
|
Package funcmaps exposes utilities to work with template.FuncMap. |
|
golang
Package golang provides the Go-specific template function map used by code generators.
|
Package golang provides the Go-specific template function map used by code generators. |
|
Package genapp renders templates into formatted Go files.
|
Package genapp renders templates into formatted Go files. |
|
Package gentesting provides test utilities for code generation.
|
Package gentesting provides test utilities for code generation. |
|
mangling
module
|
|
|
Package repo compiles a set of Go text templates into an immutable repository.
|
Package repo compiles a set of Go text templates into an immutable repository. |
|
internal/cover
Package cover measures which lines of a template a program reaches when it runs.
|
Package cover measures which lines of a template a program reaches when it runs. |
|
internal/document
Package document analyses template sources, rather than compiling them.
|
Package document analyses template sources, rather than compiling them. |
|
reports
Package reports holds what a templates repository says about itself.
|
Package reports holds what a templates repository says about itself. |
Click to show internal directories.
Click to hide internal directories.