Documentation ¶
Index ¶
- Constants
- func ArgIsContext(arg Arg) bool
- func ArgIsError(arg Arg) bool
- func IsBuiltIn(s string) bool
- type Arg
- type Args
- type BaseType
- type Dependency
- type Ellipsis
- type ExchangeStruct
- type Extractor
- type Field
- type GenericType
- func (t *GenericType) ImportPath() string
- func (t *GenericType) IsBuiltin() bool
- func (t *GenericType) IsImported() bool
- func (t *GenericType) IsInterface() bool
- func (t *GenericType) Name() string
- func (t *GenericType) Package() string
- func (t *GenericType) SetIsInterface()
- func (t *GenericType) String() string
- type GoFile
- type Import
- type Interface
- type MapType
- type Method
- type Module
- type ModuleMap
- type Package
- type Pointer
- type ProtoField
- type ProtoFile
- type ProtoImport
- type ProtoMessage
- type ProtoRPC
- type ProtoService
- type Results
- type Slice
- type Struct
- type Type
- type TypeData
- type TypeMap
Constants ¶
View Source
const SearchUpDirLimit = 5
Variables ¶
This section is empty.
Functions ¶
func ArgIsContext ¶ added in v0.1.1
func ArgIsError ¶ added in v0.1.1
Types ¶
type Args ¶
type Args []*Arg
func (Args) HasContext ¶ added in v0.1.1
func (Args) UnexportedNames ¶ added in v0.1.1
type BaseType ¶
type BaseType struct {
// contains filtered or unexported fields
}
func (*BaseType) ImportPath ¶
func (*BaseType) IsImported ¶
func (*BaseType) IsInterface ¶
func (*BaseType) SetIsInterface ¶
func (t *BaseType) SetIsInterface()
type Dependency ¶
type ExchangeStruct ¶
type GenericType ¶
type GenericType struct {
// contains filtered or unexported fields
}
func (*GenericType) ImportPath ¶
func (t *GenericType) ImportPath() string
func (*GenericType) IsBuiltin ¶ added in v0.1.0
func (t *GenericType) IsBuiltin() bool
func (*GenericType) IsImported ¶
func (t *GenericType) IsImported() bool
func (*GenericType) IsInterface ¶
func (t *GenericType) IsInterface() bool
func (*GenericType) Name ¶
func (t *GenericType) Name() string
func (*GenericType) Package ¶
func (t *GenericType) Package() string
func (*GenericType) SetIsInterface ¶
func (t *GenericType) SetIsInterface()
func (*GenericType) String ¶
func (t *GenericType) String() string
type GoFile ¶ added in v0.1.0
type GoFile struct { FilePath string Module string ModulePath string Package string FSet *token.FileSet AST *ast.File }
func (GoFile) ImportPath ¶ added in v0.1.0
type Import ¶
func (Import) IsAliasedImportRequired ¶
type MapType ¶
type MapType struct {
// contains filtered or unexported fields
}
func (*MapType) ImportPath ¶
func (*MapType) IsImported ¶
func (*MapType) IsInterface ¶
func (*MapType) SetIsInterface ¶
func (t *MapType) SetIsInterface()
type Package ¶ added in v0.1.0
type Package struct { Name string ImportPath string Path string Files map[string]*GoFile Structs map[string]*Struct Interfaces map[string]*Interface }
func NewPackageFromGoFile ¶ added in v0.1.0
type ProtoField ¶
func (ProtoField) String ¶
func (p ProtoField) String() string
type ProtoFile ¶
type ProtoFile struct { GoPackage string GoPackagePath string Package string Services []ProtoService Messages []ProtoMessage Imports []ProtoImport }
type ProtoImport ¶ added in v0.1.0
type ProtoImport struct {
Path string
}
type ProtoMessage ¶
type ProtoMessage struct { Name string Fields []ProtoField }
type ProtoRPC ¶
type ProtoRPC struct { Name string Request ProtoMessage Response ProtoMessage }
type ProtoService ¶
type Struct ¶
type Struct struct { Name string Fields []Field UsedImports []Import ImportPath string Package string }
Struct exported type TODO: edit
type Type ¶
type Type interface { Name() string Package() string String() string ImportPath() string IsImported() bool IsInterface() bool IsBuiltin() bool SetIsInterface() }
func NewGenericType ¶
func NewMapType ¶
type TypeMap ¶ added in v0.1.0
func (TypeMap) ContainsType ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.