Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2020 Changes in this version + const BooleanType + const ByteType + const Float32Type + const Float64Type + const Int32Type + const Int64Type + const IntType + const StringType + func FilterTag(tagSub string, tags []string) ([]string, string) + type Composit int + const Array + const Enum + const File + const Map + const Object + const Simple + type Element struct + Name string + Serialized string + Type *Type + type RegexValidator struct + Regex string + Tag string + type Type struct + Composit Composit + Elements []Element + Name string + Nestable bool + Required bool + Type string + Validation string + Validator *RegexValidator + func FromSchema(name string, schema *spec.Schema, required bool, ...) (*Type, error) + func FromSimpleSchema(name string, schema *spec.SimpleSchema, required bool, ...) (*Type, error) + func New(composit Composit, name, typ string, required, nestable bool, tags ...string) *Type + func NewArray(name string, required bool, elementType *Type) *Type + func NewEnum(name string, required bool, values []interface{}) (*Type, error) + func NewFile(name string, required bool) *Type + func NewMap(name string, required bool, elementType *Type) *Type + func NewObject(name string, required bool) *Type + func (typ *Type) AddElement(name string, t *Type, serialized string) + func (typ *Type) GetValidators() []*RegexValidator + func (typ *Type) WriteTo(file *file.File) error