Documentation
¶
Index ¶
- func ModRoot(cwd string) (string, error)
- func ModWdRoot() (string, error)
- func ModulePath(dir string) (string, error)
- func NewAPackages(packagesVal map[ImportPath]*api.Package) map[string]APackage
- func Parse(dir string, onlyImports ...string) (*api.Module, error)
- func PkgDirs(root string) ([]string, error)
- func Resolve(m *api.Module) error
- func SortMapValues[K comparable, V any](m map[K]V, less func(a, b V) bool) []V
- type AComment
- type AConst
- type AConstBlock
- type AConstBlockList
- type AConstructors
- type ADoc
- type AField
- type AFieldName
- type AFields
- type AFunction
- type AFunctionComment
- type AFunctions
- type AGenerics
- type AMapType
- type AMethod
- type AMethods
- type AModule
- type APackage
- type APackageRefID
- type ARecv
- type ARefId
- type AStruct
- type AStructs
- type ATypeDesc
- type AVariable
- type AVariables
- type AsciiDocHeader
- type ImportPath
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModulePath ¶
ModulePath returns whatever the mod path is.
func NewAPackages ¶
func NewAPackages(packagesVal map[ImportPath]*api.Package) map[string]APackage
func Parse ¶
Parse the specified directory, which will be the current one, if none was specified by the user. Create an api.Module that describes the contained go files.
func SortMapValues ¶
func SortMapValues[K comparable, V any](m map[K]V, less func(a, b V) bool) []V
Types ¶
type AComment ¶
func NewAComment ¶
type AConstBlock ¶
type AConstBlock struct {
api.ConstantBlock
}
func NewAConstBlock ¶
func NewAConstBlock(consts api.ConstantBlock) AConstBlock
func (AConstBlock) String ¶
func (consts AConstBlock) String() string
type AConstBlockList ¶
type AConstBlockList []AConstBlock
func NewAConstBlockList ¶
func NewAConstBlockList(blocks []api.ConstantBlock) AConstBlockList
func (AConstBlockList) String ¶
func (blocks AConstBlockList) String() string
type AConstructors ¶
func NewAConstructors ¶
func NewAConstructors(funcs []*api.Function) AConstructors
func (AConstructors) String ¶
func (c AConstructors) String() string
type AFieldName ¶
type AFieldName string
func (AFieldName) String ¶
func (name AFieldName) String() string
type AFunction ¶
func NewAFunction ¶
type AFunctionComment ¶
type AFunctionComment string
func (AFunctionComment) String ¶
func (afc AFunctionComment) String() string
type AFunctions ¶
func NewAFunctions ¶
func NewAFunctions(funcs map[string]*api.Function) AFunctions
func (AFunctions) String ¶
func (af AFunctions) String() string
type AMethod ¶
func NewAMethod ¶
type AMethods ¶
func NewAMethods ¶
type AModule ¶
type AModule struct { Readme string Name string Packages map[ImportPath]APackage }
func NewAModule ¶
type APackage ¶
APackage is a decorator struct for the api.Package struct
func NewAPackage ¶
func (APackage) RefID ¶
func (p APackage) RefID() APackageRefID
type APackageRefID ¶
func NewAPackageRefID ¶
func NewAPackageRefID(id api.RefId) APackageRefID
func (APackageRefID) String ¶
func (id APackageRefID) String() string
type AStruct ¶
func NewAStruct ¶
type ATypeDesc ¶
func NewATypeDesc ¶
type AVariable ¶
func NewAVariable ¶
type AVariables ¶
func NewAVariables ¶
func NewAVariables(vars map[string]*api.Variable) AVariables
func (AVariables) String ¶
func (v AVariables) String() string
type AsciiDocHeader ¶
type AsciiDocHeader struct {
Attributes []string
}
func NewAsciiDocHeader ¶
func NewAsciiDocHeader() AsciiDocHeader
func (AsciiDocHeader) String ¶
func (h AsciiDocHeader) String() string
type ImportPath ¶
type ImportPath = string
Click to show internal directories.
Click to hide internal directories.