Documentation ¶
Overview ¶
Package gen implements code generation from TL schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSystem ¶
FileSystem represents a directory of generated package.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator generates go types from tl.Schema.
func NewGenerator ¶
NewGenerator initializes and returns new Generator from tl.Schema.
The docBase value is base url for documentation, like:
If blank string provided, no documentation links are generated.
func (*Generator) WriteSource ¶
WriteSource writes generated definitions to fs.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package td contains generated code from example schema and is used for codegen testing.
|
Package td contains generated code from example schema and is used for codegen testing. |
Code generated for package internal by go-bindata DO NOT EDIT.
|
Code generated for package internal by go-bindata DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.