Imports #
"io"
"io"
For case matching.
const CaseMatch = 1const Casematch = 2Const block where first entry is unexported.
const ConstFiveconst ConstGroup1 unexportedType = iotaconst ConstGroup2const ConstGroup3const ConstGroup4 ExportedType = ExportedType{...}const ConstLeft2const ConstLeft4Comment before ConstOne.
const ConstOne = 1const ConstRight3const ConstRight4Const block where first entry is unexported.
const ConstSixComment about block of constants.
const ConstTwo = 2const Duplicate = iotaComment about exported constant.
const ExportedConstant = 1Constants 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 = iotaConstants tied to unexportedType.
const ExportedTypedConstant_unexported unexportedType = iotavar ExportedVarOfUnExported unexportedTypeComment about exported variable.
var ExportedVariable = 1var LongLine = *ast.CallExprconst MultiLineConst = `
	MultiLineString1
	MultiLineString2
	MultiLineString3
`var MultiLineVar = map[struct{...}]struct{...}{...}Var block where first entry is unexported.
var VarFive = 5Comment before VarOne.
var VarOne = 1Comment about block of variables.
var VarTwo = 2const _ uint64 = *ast.BinaryExprconst _ uint64 = *ast.BinaryExprConst block where first entry is unexported.
const constFour = iotaconst constLeft1const constLeft3const constRight1const constRight2Comment about block of constants.
const constThree = 3const duplicateComment about internal constant.
const internalConstant = 2Comment about internal variable.
var internalVariable = 2const unexportedTypedConstant unexportedType = 1const unexportedTypedConstant ExportedType = 1Var block where first entry is unexported.
var varFour = 4Var block where first entry is unexported.
var varSix = 6Comment about block of variables.
var varThree = 3type T1 T2type T2 intComment about unexported type.
type unexportedType intComment about exported interface.
type ExportedInterface interface {
ExportedMethod()
unexportedMethod()
io.Reader
error
}type SimpleConstraint interface {
*ast.BinaryExpr
}type StructConstraint interface {
struct{...}
}type TildeConstraint interface {
*ast.UnaryExpr
}type ExportedFormattedType struct {
ExportedField int
}type ExportedStructOneField struct {
OnlyField int
}Comment about exported type.
type ExportedType struct {
ExportedField int
unexportedField int
ExportedEmbeddedType
*ExportedEmbeddedType
*qualified.ExportedEmbeddedType
unexportedType
*unexportedType
io.Reader
error
}Comment about exported function with formatting. Example fmt.Println(FormattedDoc()) Text after pre-formatted block.
func ExportedFormattedDoc(a int) boolComment about exported function.
func ExportedFunc(a int) boolfunc (unexportedType) ExportedMethod() boolComment about exported method.
func (ExportedType) ExportedMethod(a int) boolComment about constructor for exported type.
func ExportedTypeConstructor() *ExportedTypefunc MultiLineFunc(x interface{...}) (r struct{...})func ReturnExported() ExportedTypefunc ReturnUnexported() unexportedTypefunc (ExportedType) Uncommented(a int) boolComment about internal function.
func internalFunc(a int) boolfunc newLongLine(ss ...string)func (unexportedType) unexportedMethod() boolComment about unexported method.
func (ExportedType) unexportedMethod(a int) boolGenerated with Arrow