Documentation
¶
Overview ¶
Package gotypes provides Go struct type schema translation utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator struct{}
Translator translates JSON schemas to Go struct type definitions.
func (*Translator) FileExtension ¶
func (t *Translator) FileExtension() string
FileExtension returns the file extension for Go source files.
func (*Translator) Translate ¶
func (t *Translator) Translate(portName string, schema *jsonschema.Schema, outputDir string) ([]byte, error)
Translate converts a JSON schema to Go struct definitions.