goapi

package module
v0.0.0-...-c27a7dd Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: BSD-2-Clause Imports: 20 Imported by: 1

README

goapi

Export api of Go packages.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiAllmethods bool = true
	ApiAlldecls   bool = false

	ApiSeparate     string = ", "
	ApiImportParser bool   = true
	ApiDefaultCtx   bool   = true
	ApiCustomCtx    string = ""
)

Functions

func LookupApi

func LookupApi(pkgs ...string) ([]string, error)

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