pkg

Imports

Imports #

"io"

Constants & Variables

CaseMatch const #

For case matching.

const CaseMatch = 1

Casematch const #

const Casematch = 2

ConstFive const #

Const block where first entry is unexported.

const ConstFive

ConstGroup1 const #

const ConstGroup1 unexportedType = iota

ConstGroup2 const #

const ConstGroup2

ConstGroup3 const #

const ConstGroup3

ConstGroup4 const #

const ConstGroup4 ExportedType = ExportedType{...}

ConstLeft2 const #

const ConstLeft2

ConstLeft4 const #

const ConstLeft4

ConstOne const #

Comment before ConstOne.

const ConstOne = 1

ConstRight3 const #

const ConstRight3

ConstRight4 const #

const ConstRight4

ConstSix const #

Const block where first entry is unexported.

const ConstSix

ConstTwo const #

Comment about block of constants.

const ConstTwo = 2

Duplicate const #

const Duplicate = iota

ExportedConstant const #

Comment about exported constant.

const ExportedConstant = 1

ExportedTypedConstant const #

Constants tied to ExportedType. (The type is a struct so this isn't valid Go, but it parses and that's all we need.)

const ExportedTypedConstant ExportedType = iota

ExportedTypedConstant_unexported const #

Constants tied to unexportedType.

const ExportedTypedConstant_unexported unexportedType = iota

ExportedVarOfUnExported var #

var ExportedVarOfUnExported unexportedType

ExportedVariable var #

Comment about exported variable.

var ExportedVariable = 1

LongLine var #

var LongLine = *ast.CallExpr

MultiLineConst const #

const MultiLineConst = `
	MultiLineString1
	MultiLineString2
	MultiLineString3
`

MultiLineVar var #

var MultiLineVar = map[struct{...}]struct{...}{...}

VarFive var #

Var block where first entry is unexported.

var VarFive = 5

VarOne var #

Comment before VarOne.

var VarOne = 1

VarTwo var #

Comment about block of variables.

var VarTwo = 2

_ const #

const _ uint64 = *ast.BinaryExpr

_ const #

const _ uint64 = *ast.BinaryExpr

constFour const #

Const block where first entry is unexported.

const constFour = iota

constLeft1 const #

const constLeft1

constLeft3 const #

const constLeft3

constRight1 const #

const constRight1

constRight2 const #

const constRight2

constThree const #

Comment about block of constants.

const constThree = 3

duplicate const #

const duplicate

internalConstant const #

Comment about internal constant.

const internalConstant = 2

internalVariable var #

Comment about internal variable.

var internalVariable = 2

unexportedTypedConstant const #

const unexportedTypedConstant unexportedType = 1

unexportedTypedConstant const #

const unexportedTypedConstant ExportedType = 1

varFour var #

Var block where first entry is unexported.

var varFour = 4

varSix var #

Var block where first entry is unexported.

var varSix = 6

varThree var #

Comment about block of variables.

var varThree = 3

Type Aliases

T1 type #

type T1 T2

T2 type #

type T2 int

unexportedType type #

Comment about unexported type.

type unexportedType int

Interfaces

ExportedInterface interface #

Comment about exported interface.

type ExportedInterface interface {
ExportedMethod()
unexportedMethod()
io.Reader
error
}

SimpleConstraint interface #

type SimpleConstraint interface {
*ast.BinaryExpr
}

StructConstraint interface #

type StructConstraint interface {
struct{...}
}

TildeConstraint interface #

type TildeConstraint interface {
*ast.UnaryExpr
}

Structs

ExportedFormattedType struct #

type ExportedFormattedType struct {
ExportedField int
}

ExportedStructOneField struct #

type ExportedStructOneField struct {
OnlyField int
}

ExportedType struct #

Comment about exported type.

type ExportedType struct {
ExportedField int
unexportedField int
ExportedEmbeddedType
*ExportedEmbeddedType
*qualified.ExportedEmbeddedType
unexportedType
*unexportedType
io.Reader
error
}

Functions

ExportedFormattedDoc function #

Comment about exported function with formatting. Example fmt.Println(FormattedDoc()) Text after pre-formatted block.

func ExportedFormattedDoc(a int) bool

ExportedFunc function #

Comment about exported function.

func ExportedFunc(a int) bool

ExportedMethod method #

func (unexportedType) ExportedMethod() bool

ExportedMethod method #

Comment about exported method.

func (ExportedType) ExportedMethod(a int) bool

ExportedTypeConstructor function #

Comment about constructor for exported type.

func ExportedTypeConstructor() *ExportedType

MultiLineFunc function #

func MultiLineFunc(x interface{...}) (r struct{...})

ReturnExported function #

func ReturnExported() ExportedType

ReturnUnexported function #

func ReturnUnexported() unexportedType

Uncommented method #

func (ExportedType) Uncommented(a int) bool

internalFunc function #

Comment about internal function.

func internalFunc(a int) bool

newLongLine function #

func newLongLine(ss ...string)

unexportedMethod method #

func (unexportedType) unexportedMethod() bool

unexportedMethod method #

Comment about unexported method.

func (ExportedType) unexportedMethod(a int) bool

Generated with Arrow