goapi

package
v0.0.0-...-b76ad68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2015 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &command.Command{
	Run:       runApi,
	UsageLine: "goapi",
	Short:     "golang api util",
	Long:      `golang api util`,
}

Functions

This section is empty.

Types

type CursorInfo

type CursorInfo struct {
	// contains filtered or unexported fields
}

type ExprType

type ExprType struct {
	X ast.Expr
	T string
}

type Kind

type Kind int

expression kind

const (
	KindBuiltin Kind = iota
	KindPackage
	KindImport
	KindVar
	KindConst
	KindInterface
	KindParam
	KindStruct
	KindMethod
	KindField
	KindType
	KindFunc
	KindChan
	KindArray
	KindMap
	KindSlice
	KindLabel
	KindBranch
)

func (Kind) String

func (k Kind) String() string

type Package

type Package struct {
	// contains filtered or unexported fields
}

func NewPackage

func NewPackage() *Package

func (*Package) Features

func (p *Package) Features() (fs []string)

type TypeInfo

type TypeInfo struct {
	Kind Kind
	Name string
	Type string
	X    ast.Expr
	T    ast.Expr
}

expression type

type Walker

type Walker struct {
	// contains filtered or unexported fields
}

func NewWalker

func NewWalker() *Walker

func (*Walker) Features

func (w *Walker) Features(ctx string) (fs []string)

func (*Walker) WalkPackage

func (w *Walker) WalkPackage(pkg string)

func (*Walker) WalkPackageDir

func (w *Walker) WalkPackageDir(name string, dir string, bp *build.Package)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL