introspect

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

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

Go to latest
Published: Feb 3, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chan

type Chan struct {
	Dir  ast.ChanDir
	Type Field
}

type Field

type Field interface {
}

type FieldList

type FieldList []Field

func NewFieldList

func NewFieldList() *FieldList

type File

type File struct {
	Types
	Name string
}

type FileBuilder

type FileBuilder struct {
	File
	// contains filtered or unexported fields
}

func NewFileBuilder

func NewFileBuilder(fileName string) (*FileBuilder, error)

func (*FileBuilder) Build

func (f *FileBuilder) Build() (*File, error)

type Func

type Func struct {
	Name    string
	Params  FieldList
	Results FieldList
}

type Interface

type Interface struct {
	*FieldList
	Name string
}

type Package

type Package struct {
	Files []File
}

type PackageBuilder

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

func NewPackage

func NewPackage(path string) (*PackageBuilder, error)

func (*PackageBuilder) Build

func (p *PackageBuilder) Build() (*Package, error)

type Struct

type Struct struct {
	*FieldList
	Name string
}

type TypedField

type TypedField struct {
	Name string
	Type string
}

type Types

type Types struct {
	Interfaces []Interface
	Structs    []Struct
}

func (*Types) Interface

func (w *Types) Interface(name string) *FieldList

func (*Types) Struct

func (w *Types) Struct(name string) *FieldList

Jump to

Keyboard shortcuts

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