Documentation
¶
Overview ¶
Package render turns codegen IR into formatted Go source.
Index ¶
- func Enums(f ir.File) ([]byte, error)
- func EnumsFile(pkg string, enums []ir.Enum) ([]byte, error)
- func MessageFile(pkg string, structs []ir.Struct, enums []ir.Enum, needTime, needDecimal bool) ([]byte, error)
- func Messages(f ir.File) ([]byte, error)
- func Profile(f ir.File, profileName string) ([]byte, error)
- func RegisterFile(version string, messages []ir.Message) ([]byte, error)
- func Structs(f ir.File) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MessageFile ¶
func MessageFile(pkg string, structs []ir.Struct, enums []ir.Enum, needTime, needDecimal bool) ([]byte, error)
MessageFile renders the structs and enums for a single message file.
func RegisterFile ¶
RegisterFile renders a helper that registers all generated schemas.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.