Documentation ¶
Index ¶
Constants ¶
View Source
const ( TopMode = iota ImportMode RouteMode IncludeMode UsingMode DoesMode FromMode )
Insertion modes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
func (*Command) IsIncludes ¶
type EventHandler ¶
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
func NewSerializer ¶
func NewSerializer(name, packname string, out io.Writer, reg Registry) *Serializer
NewSerializer creates a new serializer.
name is used to construct the function callback. "foo" becomes "func FooRoutes(reg *cookoo.Registry)" packname is used to construct the package. "foo" becomes "package foo"
func (*Serializer) Write ¶
func (s *Serializer) Write() error
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
func NewTokenizer ¶
func NewTokenizer(input io.Reader, e EventHandler) *Tokenizer
Click to show internal directories.
Click to hide internal directories.