Documentation ¶
Index ¶
- func AddModuleToModuleList(allExternalModules listmodules.ModuleList, ...) (err error)
- func IdentifyAstIdentity(x ast.Expr) (*ast.Ident, string, bool)
- func PackageUrlToSafePath(pkgURL string) string
- func RemoveModuleFromModuleList(moduleToRemove CompatibleMEVPlusCoreService) (err error)
- type ArgInfo
- type CompatibleMEVPlusCoreService
- type InterfaceChecker
- type MethodInfo
- type OutputInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddModuleToModuleList ¶
func AddModuleToModuleList(allExternalModules listmodules.ModuleList, newModule CompatibleMEVPlusCoreService) (err error)
func PackageUrlToSafePath ¶
func RemoveModuleFromModuleList ¶
func RemoveModuleFromModuleList(moduleToRemove CompatibleMEVPlusCoreService) (err error)
Types ¶
type CompatibleMEVPlusCoreService ¶
type CompatibleMEVPlusCoreService struct { Name string // the name of the module Variable *ast.Ident // the variable that holds the struct StructDef *ast.Ident // the struct definition ImportPath string // the import path of the struct FilePath string // the go file path of the struct PkgDir string // the package directory GenerativeFunc *ast.FuncDecl // the function that generates the struct }
type InterfaceChecker ¶
type InterfaceChecker struct { InterfaceName string PkgPath string Methods []MethodInfo }
InterfaceChecker checks if a package has a struct that meets a specified interface.
var IC *InterfaceChecker
func (*InterfaceChecker) ImplementsInterface ¶
type MethodInfo ¶
type MethodInfo struct { Name string Args []ArgInfo Returns []OutputInfo }
MethodInfo stores information about a method, including its name, argument types, and return types.
Click to show internal directories.
Click to hide internal directories.