Documentation
¶
Index ¶
- Constants
- func GetDependentModuleAbsPath(module string) (string, error)
- func GetDirPackageName(dir string) string
- type Import
- type LoadFunc
- type LoaderParser
- func (s *LoaderParser) Execute(cmdSelected []string, onlyPrint bool) error
- func (s *LoaderParser) GenerateCode() (importCode, loadFuncCode string)
- func (s *LoaderParser) Init() error
- func (s *LoaderParser) ParseImports()
- func (s *LoaderParser) ParseLoadFuncs()
- func (s *LoaderParser) ParseModuleLoader() (loaders []*LoadFunc, err error)
- func (s *LoaderParser) Save(importCode, loadFuncCode string) error
- func (s *LoaderParser) Select(options []*LoadFunc, cmdSelected []string) error
Constants ¶
View Source
const GoneModule = "github.com/gone-io/gone/v2"
View Source
const LoaderFile = "module.load.go"
Variables ¶
This section is empty.
Functions ¶
func GetDirPackageName ¶
GetDirPackageName get package name of dir path
Types ¶
type LoaderParser ¶
type LoaderParser struct { Imports []*Import // contains filtered or unexported fields }
func (*LoaderParser) Execute ¶
func (s *LoaderParser) Execute(cmdSelected []string, onlyPrint bool) error
func (*LoaderParser) GenerateCode ¶
func (s *LoaderParser) GenerateCode() (importCode, loadFuncCode string)
func (*LoaderParser) Init ¶
func (s *LoaderParser) Init() error
func (*LoaderParser) ParseImports ¶
func (s *LoaderParser) ParseImports()
func (*LoaderParser) ParseLoadFuncs ¶
func (s *LoaderParser) ParseLoadFuncs()
func (*LoaderParser) ParseModuleLoader ¶
func (s *LoaderParser) ParseModuleLoader() (loaders []*LoadFunc, err error)
func (*LoaderParser) Save ¶
func (s *LoaderParser) Save(importCode, loadFuncCode string) error
Click to show internal directories.
Click to hide internal directories.