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.
func (*Generator) WriteSource ¶
WriteSource writes generated definitions to fs.
type Option ¶ added in v0.48.0
type Option func(o *generateOptions)
Option that configures generation.
func WithDocumentation ¶ added in v0.48.0
WithDocumentation will embed documentation references to generated code.
If base is https://core.telegram.org, documentation content will be also embedded.
func WithServer ¶ added in v0.48.0
func WithServer() Option
WithServer enables experimental server generation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.