Versions in this module Expand all Collapse all v0 v0.5.1 Jan 16, 2020 Changes in this version + const ArrayTypeName + const BlankLine + const CommentLineLength + const MaxSpecified + const MinOnly + const ObjectTypeName + const OpenEnded + const PopIndent + const PushIndent + const StringTypeName + var StringAlias = &SyslBuiltIn + func IsBuiltIn(name string) bool + func LoadGrammar(args OutputData, grammarInput string, logger *logrus.Logger) (out string, err error) + func LoadOpenAPIText(args OutputData, text string, logger *logrus.Logger) (out string, err error) + func LoadSwaggerText(args OutputData, text string, logger *logrus.Logger) (out string, err error) + func LoadXSDText(args OutputData, text string, logger *logrus.Logger) (out string, err error) + type Alias struct + Target Type + func (s *Alias) Name() string + type Array struct + Items Type + func (s *Array) Name() string + type Endpoint struct + Description string + Params Parameters + Path string + Responses []Response + type Enum struct + func (s *Enum) Name() string + type ExternalAlias struct + Target Type + func (s *ExternalAlias) Name() string + type Field struct + Attributes []string + Name string + Optional bool + SizeSpec *sizeSpec + Type Type + type FieldList []Field + type Func func(args OutputData, text string, logger *logrus.Logger) (out string, err error) + type Grammar struct + type ImportedBuiltInAlias struct + Target Type + func (s *ImportedBuiltInAlias) Name() string + type IndentWriter struct + func NewIndentWriter(text string, out io.Writer) *IndentWriter + func (i *IndentWriter) CurrentIndentLen() int + func (i *IndentWriter) Pop() + func (i *IndentWriter) Push() + func (i *IndentWriter) Write() error + type MethodEndpoints struct + Endpoints []Endpoint + Method string + type OutputData struct + AppName string + Package string + type Param struct + In string + type Parameters struct + func (p *Parameters) Add(param Param) + func (p *Parameters) Extend(others Parameters) Parameters + func (p Parameters) BodyParams() []Param + func (p Parameters) HeaderParams() []Param + func (p Parameters) PathParams() []Param + func (p Parameters) QueryParams() []Param + type Response struct + Text string + Type Type + type StandardType struct + Attributes []string + Properties FieldList + func (s *StandardType) Name() string + type SyslBuiltIn struct + func (s *SyslBuiltIn) Name() string + type SyslInfo struct + Description string + OtherFields []string + Title string + type Type interface + Name func() string + func NewStringAlias(name string) Type + type TypeList struct + func (t *TypeList) Add(item ...Type) + func (t *TypeList) AddAndRet(item Type) Type + func (t TypeList) Find(name string) (Type, bool) + func (t TypeList) Items() []Type + func (t TypeList) Sort() + type Union struct + Options FieldList + func (u *Union) Name() string