Documentation
¶
Overview ¶
Package static uses static analysis to produce application and handler configurations directly from source code.
Index ¶
Constants ¶
const PackagesLoadMode = packages.NeedFiles | packages.NeedCompiledGoFiles | packages.NeedImports | packages.NeedTypes | packages.NeedSyntax | packages.NeedTypesInfo | packages.NeedDeps
PackagesLoadMode is the minimal packages.LoadMode required when loading packages for analysis by FromPackages.
Variables ¶
This section is empty.
Functions ¶
func FromDir ¶ added in v0.13.5
func FromDir(dir string) []configkit.Application
FromDir returns the configurations of the Dogma applications implemented within the packages in the given directory and its children.
func FromPackages ¶
func FromPackages(pkgs []*packages.Package) []configkit.Application
FromPackages returns the configurations of the Dogma applications implemented within a set of packages.
It performs a static analysis to produce the configurations. The returned configurations may be invalid if portions of the application's configuration can not be deduced statically.
It ignores packages that can not be built.
Types ¶
This section is empty.