Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModulePath ¶
ModulePath returns the module declaration of a go.mod file "b" contents.
func Package ¶
Package returns the package declaration (without "package") of "b" source-code contents.
func TryFindPackage ¶
TryFindPackage returns a go package based on the dir, it reads the package declaration of the `main.go` or any `*go`
Types ¶
type Result ¶
type Result struct { AssetDirs []*AssetDir Commands []*SourceCommand }
Result is the `Parse` return value.
type SourceCommand ¶
Click to show internal directories.
Click to hide internal directories.