Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTooManyPackages = errors.New("too many package")
)
Functions ¶
This section is empty.
Types ¶
type File ¶
type Generator ¶
type Generator struct { TrimPrefix string LineComment bool // contains filtered or unexported fields }
func (*Generator) GenerateHeader ¶
type Value ¶
type Value struct { OriginalName string // The name of the constant. Name string // The name with trimmed prefix. // The value is stored as a bit pattern alone. The boolean tells us // whether to interpret it as an int64 or a uint64; the only place // this matters is when sorting. // Much of the time the str field is all we need; it is printed // by Value.String. Value uint64 // Will be converted to int64 when needed. Signed bool // Whether the constant is a signed type. Str string // The string representation given by the "go/constant" package. }
Value represents a declared constant.
Click to show internal directories.
Click to hide internal directories.