Documentation ¶
Index ¶
- Variables
- func FormatComment(s string, leftCol int, rightCol int) string
- func Generate(schema *rdl.Schema, params *GeneratorParams) error
- func GenerateGoSchema(banner string, schema *rdl.Schema, outdir string, ns string, librdl string, ...) error
- func GenerationHeader(banner string) string
- func GenerationPackage(schema *rdl.Schema, ns string) string
- func GoType(reg rdl.TypeRegistry, rdlType rdl.TypeRef, optional bool, items rdl.TypeRef, ...) string
- func GoType2(reg rdl.TypeRegistry, rdlType rdl.TypeRef, optional bool, items rdl.TypeRef, ...) string
- func SafeTypeVarName(rtype rdl.TypeRef) rdl.TypeName
- type GeneratorParams
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLibRdl = "github.com/ardielle/ardielle-go/rdl"
View Source
var FullValidation bool = true
FullValidation - the generated validation method includes things like string pattern checks
Functions ¶
func Generate ¶
func Generate(schema *rdl.Schema, params *GeneratorParams) error
GenerateGoModel generates the model code for the types defined in the RDL schema.
func GenerateGoSchema ¶
func GenerateGoSchema(banner string, schema *rdl.Schema, outdir string, ns string, librdl string, prefixEnums bool) error
GenerateGoSchema generates the code to regenerate the Schema
func GenerationHeader ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.