Imports #
"io"
"io"
For case matching.
const CaseMatch = 1
const Casematch = 2
Const block where first entry is unexported.
const ConstFive
const ConstGroup1 unexportedType = iota
const ConstGroup2
const ConstGroup3
const ConstGroup4 ExportedType = ExportedType{...}
const ConstLeft2
const ConstLeft4
Comment before ConstOne.
const ConstOne = 1
const ConstRight3
const ConstRight4
Const block where first entry is unexported.
const ConstSix
Comment about block of constants.
const ConstTwo = 2
const Duplicate = iota
Comment about exported constant.
const ExportedConstant = 1
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
Constants tied to unexportedType.
const ExportedTypedConstant_unexported unexportedType = iota
var ExportedVarOfUnExported unexportedType
Comment about exported variable.
var ExportedVariable = 1
var LongLine = *ast.CallExpr
const MultiLineConst = `
MultiLineString1
MultiLineString2
MultiLineString3
`
var MultiLineVar = map[struct{...}]struct{...}{...}
Var block where first entry is unexported.
var VarFive = 5
Comment before VarOne.
var VarOne = 1
Comment about block of variables.
var VarTwo = 2
const _ uint64 = *ast.BinaryExpr
const _ uint64 = *ast.BinaryExpr
Const block where first entry is unexported.
const constFour = iota
const constLeft1
const constLeft3
const constRight1
const constRight2
Comment about block of constants.
const constThree = 3
const duplicate
Comment about internal constant.
const internalConstant = 2
Comment about internal variable.
var internalVariable = 2
const unexportedTypedConstant unexportedType = 1
const unexportedTypedConstant ExportedType = 1
Var block where first entry is unexported.
var varFour = 4
Var block where first entry is unexported.
var varSix = 6
Comment about block of variables.
var varThree = 3
type T1 T2
type T2 int
Comment about unexported type.
type unexportedType int
Comment 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) bool
Comment about exported function.
func ExportedFunc(a int) bool
func (unexportedType) ExportedMethod() bool
Comment about exported method.
func (ExportedType) ExportedMethod(a int) bool
Comment about constructor for exported type.
func ExportedTypeConstructor() *ExportedType
func MultiLineFunc(x interface{...}) (r struct{...})
func ReturnExported() ExportedType
func ReturnUnexported() unexportedType
func (ExportedType) Uncommented(a int) bool
Comment about internal function.
func internalFunc(a int) bool
func newLongLine(ss ...string)
func (unexportedType) unexportedMethod() bool
Comment about unexported method.
func (ExportedType) unexportedMethod(a int) bool
Generated with Arrow