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 ¶
Click to show internal directories.
Click to hide internal directories.