definfo

package
v0.0.0-...-3ef3b95 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: MIT, BSD-3-Clause Imports: 0 Imported by: 3

Documentation

Overview

Package definfo is separate from gog so that its members can be imported without pulling in gog's other dependencies.

Index

Constants

View Source
const (
	Package   = "package"
	Field     = "field"
	Func      = "func"
	Method    = "method"
	Var       = "var"
	Type      = "type"
	Interface = "interface"
	Const     = "const"
)

Variables

Functions

This section is empty.

Types

type DefInfo

type DefInfo struct {
	// Exported is whether this def is exported.
	Exported bool `json:",omitempty"`

	// PkgScope is whether this def is in Go package scope.
	PkgScope bool `json:",omitempty"`

	// PkgName is the name (not import path) of the package containing this
	// def.
	PkgName string

	// Receiver is the receiver of this def (or the empty string if this
	// def is not a method).
	Receiver string `json:",omitempty"`

	// FieldOfStruct is the struct that this def is a field of (or the empty string if this
	// def is not a struct field).
	FieldOfStruct string `json:",omitempty"`

	// TypeString is a string describing this def's Go type.
	TypeString string

	// UnderlyingTypeString is the function or method signature, if this is a function or method.
	UnderlyingTypeString string `json:",omitempty"`

	// Kind is the kind of Go thing this def is: struct, interface, func,
	// package, etc.
	Kind string `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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