importer

package
v0.0.0-...-10c99b5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	Kind   string `json:"kind"`
	Inner  Type   `json:"inner"`
	Lenght int64  `json:"length"`
}

func NewArray

func NewArray(inner Type, length int64) Array

type Basic

type Basic struct {
	Kind    string `json:"kind"`
	Name    string `json:"name"`
	Untyped bool   `json:"untyped"`
}

func NewBasic

func NewBasic(name string, untyped bool) Basic

type Interface

type Interface struct {
	Kind string `json:"kind"`
}

func NewInterface

func NewInterface() Interface

type Named

type Named struct {
	Kind       string `json:"kind"`
	Pkg        string `json:"pkg"`
	Name       string `json:"name"`
	Underlying Type   `json:"underlying"`
}

func NewNamed

func NewNamed(pkg string, name string, underlying Type) Named

type Object

type Object struct {
	Name       string `json:"name"`
	ObjectType string `json:"objectType"`
	Type       Type   `json:"type"`
}

type Package

type Package struct {
	Name    string   `json:"name"`
	Objects []Object `json:"objects"`
}

func GetPackage

func GetPackage(pkgPath string) (*Package, error)

type Pointer

type Pointer struct {
	Kind  string `json:"kind"`
	Inner Type   `json:"inner"`
}

func NewPointer

func NewPointer(inner Type) Pointer

type Signature

type Signature struct {
	Kind     string `json:"kind"`
	Variadic bool   `json:"variadic"`
	Recv     *Type  `json:"recv"`
	Params   []Type `json:"params"`
	Returns  []Type `json:"returns"`
}

func NewSignature

func NewSignature(variadic bool, recv *Type, arguments, returns []Type) Signature

type Slice

type Slice struct {
	Kind  string `json:"kind"`
	Inner Type   `json:"inner"`
}

func NewSlice

func NewSlice(inner Type) Slice

type Struct

type Struct struct {
	Kind   string        `json:"kind"`
	Fields []StructField `json:"fields"`
}

func NewStruct

func NewStruct(fields []StructField) Struct

type StructField

type StructField struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
	Type Type   `json:"type"`
}

func NewStructField

func NewStructField(name string, fieldType Type) StructField

type Type

type Type interface {
}

type Unsupported

type Unsupported struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
}

func NewUnsupported

func NewUnsupported(name string) Unsupported

Jump to

Keyboard shortcuts

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