Documentation ¶
Index ¶
- func FindFunc(filepath string) map[string]*ast.FuncDecl
- func FindImportPath(filePath string) ([]string, error)
- func FindInterface(interfaceName string, filePath string) *ast.InterfaceType
- func FindProviderName(filePath string) ([]string, error)
- func FindStruct(structName string, filePath string) *ast.StructType
- func FindWireBind(filePath string) (map[string]*InterfaceSpec, error)
- func GetPostArgument(property []string, propertyType []string) []jen.Code
- func GetPropertyByStructAst(structAst *ast.StructType) ([]string, []string)
- func PrintFile(filepath string)
- func PrintStruct(structAst ast.StructType)
- type InterfaceSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindImportPath ¶
FindImportPath find importPath list
func FindInterface ¶
func FindInterface(interfaceName string, filePath string) *ast.InterfaceType
func FindProviderName ¶
FindProviderName find provider name list
func FindStruct ¶
func FindStruct(structName string, filePath string) *ast.StructType
func FindWireBind ¶
func FindWireBind(filePath string) (map[string]*InterfaceSpec, error)
FindWireBind find elements of wire.Bind()
func GetPropertyByStructAst ¶
func GetPropertyByStructAst(structAst *ast.StructType) ([]string, []string)
func PrintStruct ¶
func PrintStruct(structAst ast.StructType)
Types ¶
type InterfaceSpec ¶
Click to show internal directories.
Click to hide internal directories.