Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct { // Reserved decides whether a given input is reserved. // If nil it defaults to token.IsKeyword. Reserved func(input string) bool // contains filtered or unexported fields }
Allocator helps choosing names without collisions and without using Go keywords. The zero value is ready to be used.
Click to show internal directories.
Click to hide internal directories.