Documentation
¶
Overview ¶
Package goblockgen turns captured go blocks into normal generated Go package source used by build and app generation.
Index ¶
- func GeneratedImportPath(packageName string) string
- func GeneratedRelPath(packageName string) string
- func ImportAliases(file *ast.File, imports []gwdkir.Import) map[string]string
- func ParseFile(packageName string, block gwdkir.GoBlock) (*ast.File, error)
- func SafePackageDir(packageName string) string
- func SafePackageName(packageName string) string
- func Source(packageName string, imports []gwdkir.Import, blocks []gwdkir.GoBlock) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratedImportPath ¶
GeneratedImportPath returns the generated-app import path for go blocks from a GOWDK package.
func GeneratedRelPath ¶
GeneratedRelPath returns the generated app relative path for one go block file.
func ImportAliases ¶
ImportAliases returns Go import aliases from block-local imports plus used .gwdk imports.
func SafePackageDir ¶
SafePackageDir returns a stable generated directory name for a GOWDK package.
func SafePackageName ¶
SafePackageName returns a valid Go package identifier for generated go block files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.