Documentation
¶
Index ¶
- func Exported(list any) any
- func Methods(v any) map[string]*Func
- func NewTemplate(td *TempalteData) *template.Template
- func Position(fset *token.FileSet, v any) token.Position
- func Version() string
- type ASTNode
- func (n *ASTNode) BoolVal() bool
- func (n *ASTNode) Float32Val() float32
- func (n *ASTNode) Float64Val() float64
- func (n *ASTNode) Int64Val() int64
- func (n *ASTNode) Pos() token.Pos
- func (n *ASTNode) String() string
- func (n *ASTNode) StringVal() string
- func (n *ASTNode) Uint64Val() uint64
- func (n *ASTNode) Val() any
- type Array
- type Basic
- type Chan
- type Const
- func (c *Const) BoolVal() bool
- func (c *Const) Float32Val() float32
- func (c *Const) Float64Val() float64
- func (c *Const) Int64Val() int64
- func (c *Const) Pos() token.Pos
- func (c *Const) String() string
- func (c *Const) StringVal() string
- func (c *Const) TypesObject() types.Object
- func (c *Const) Uint64Val() uint64
- func (c *Const) Val() any
- type Field
- type Func
- type Interface
- type Knife
- type Map
- type Named
- type Object
- type Option
- type Package
- type Pointer
- type Scope
- type Signature
- type Slice
- type Struct
- type TempalteData
- type Type
- func (t *Type) Array() *Array
- func (t *Type) Basic() *Basic
- func (t *Type) Chan() *Chan
- func (t *Type) Interface() *Interface
- func (t *Type) Map() *Map
- func (t *Type) Named() *Named
- func (t *Type) Pointer() *Pointer
- func (t *Type) Signature() *Signature
- func (t *Type) Slice() *Slice
- func (t *Type) String() string
- func (t *Type) Struct() *Struct
- func (t *Type) Underlying() *Type
- type TypeName
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTemplate ¶
func NewTemplate(td *TempalteData) *template.Template
NewTemplate creates new a template with funcmap.
Types ¶
type ASTNode ¶
type ASTNode struct {
Node ast.Node
Scope *Scope
Type *Type
Name string
Object Object
Value constant.Value
}
func (*ASTNode) Float32Val ¶
func (*ASTNode) Float64Val ¶
type Const ¶
type Const struct {
TypesConst *types.Const
Exported bool
Name string
Package *Package
Type *Type
Value constant.Value
}
func (*Const) Float32Val ¶
func (*Const) Float64Val ¶
func (*Const) TypesObject ¶
type Field ¶
type Field struct {
TypesVar *types.Var
Struct *Struct
Tag string
Anonymous bool
Exported bool
Name string
Type *Type
}
func (*Field) TypesObject ¶
type Func ¶
type Func struct {
TypesFunc *types.Func
Name string
Exported bool
Package *Package
Signature *Signature
}
func (*Func) TypesObject ¶
type Interface ¶
type Interface struct {
TypesInterface *types.Interface
Empty bool
Embeddeds []*Type
Methods map[string]*Func
MethodNames []string
ExplicitMethods map[string]*Func
ExplicitMethodNames []string
}
func NewInterface ¶
func ToInterface ¶
type Knife ¶
type Knife struct {
// contains filtered or unexported fields
}
type Named ¶
type Package ¶
type Package struct {
TypesPackage *types.Package
Name string
Path string
Imports []*Package
Funcs map[string]*Func
FuncNames []string
Vars map[string]*Var
VarNames []string
Consts map[string]*Const
ConstNames []string
Types map[string]*TypeName
TypeNames []string
}
func NewPackage ¶
type Pointer ¶
func NewPointer ¶
type Scope ¶
type Signature ¶
type Signature struct {
TypesSignature *types.Signature
Recv *Var
Params []*Var
Results []*Var
Variadic bool
}
func NewSignature ¶
func ToSignature ¶
type TempalteData ¶
type Type ¶
func (*Type) Underlying ¶
type TypeName ¶
type TypeName struct {
TypesTypeName *types.TypeName
Exported bool
IsAlias bool
Name string
Package *Package
Type *Type
}
func NewTypeName ¶
func (*TypeName) TypesObject ¶
type Var ¶
func (*Var) TypesObject ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
_examples
|
|
|
mockgen
command
|
|
|
cmd
|
|
|
cutter
command
|
|
|
hagane
command
|
|
|
knife
command
|
|
|
objls
command
|
|
|
typels
command
|
|
|
Package mcp provides Model Context Protocol (MCP) server implementations for knife and cutter tools, enabling remote execution of Go static analysis operations through MCP-compatible clients.
|
Package mcp provides Model Context Protocol (MCP) server implementations for knife and cutter tools, enabling remote execution of Go static analysis operations through MCP-compatible clients. |
Click to show internal directories.
Click to hide internal directories.