Versions in this module Expand all Collapse all v2 v2.6.15 May 22, 2025 v2.6.14 Jan 9, 2025 v2.6.13 Jan 8, 2025 v2.6.12 Jan 8, 2025 v2.6.11 Jan 8, 2025 v2.6.10 Jan 7, 2025 Changes in this version + const RoutePrefixKey + var ErrMissingService = errors.New("missing service") + type Annotation struct + Properties map[string]string + type ApiSpec struct + Imports []Import + Info Info + Service Service + Syntax ApiSyntax + Types []Type + func (s *ApiSpec) Validate() error + type ApiSyntax struct + Comment Doc + Doc Doc + Version string + type ArrayType struct + RawName string + Value Type + func (t ArrayType) Comments() []string + func (t ArrayType) Documents() []string + func (t ArrayType) Name() string + type AtDoc struct + Properties map[string]string + Text string + type DefineStruct struct + Docs Doc + Members []Member + RawName string + func (t DefineStruct) Comments() []string + func (t DefineStruct) Documents() []string + func (t DefineStruct) GetBodyMembers() []Member + func (t DefineStruct) GetFormMembers() []Member + func (t DefineStruct) GetNonBodyMembers() []Member + func (t DefineStruct) GetTagMembers(tagKey string) []Member + func (t DefineStruct) IsNestedStruct() bool + func (t DefineStruct) Name() string + type Doc []string + type Group struct + Annotation Annotation + Routes []Route + func (g Group) GetAnnotation(key string) string + type Import struct + Comment Doc + Doc Doc + Value string + type Info struct + Author string + Desc string + Email string + Properties map[string]string + Title string + Version string + type InterfaceType struct + RawName string + func (t InterfaceType) Comments() []string + func (t InterfaceType) Documents() []string + func (t InterfaceType) Name() string + type MapType struct + Key string + RawName string + Value Type + func (t MapType) Comments() []string + func (t MapType) Documents() []string + func (t MapType) Name() string + type Member struct + Comment string + Docs Doc + IsInline bool + Name string + Tag string + Type Type + func (m Member) GetComment() string + func (m Member) GetEnumOptions() []string + func (m Member) GetPropertyName() (string, error) + func (m Member) IsBodyMember() bool + func (m Member) IsFormMember() bool + func (m Member) IsOmitEmpty() bool + func (m Member) IsOptional() bool + func (m Member) IsTagMember(tagKey string) bool + func (m Member) Tags() []*Tag + type PointerType struct + RawName string + Type Type + func (t PointerType) Comments() []string + func (t PointerType) Documents() []string + func (t PointerType) Name() string + type PrimitiveType struct + RawName string + func (t PrimitiveType) Comments() []string + func (t PrimitiveType) Documents() []string + func (t PrimitiveType) Name() string + type Route struct + AtDoc AtDoc + AtServerAnnotation Annotation + Comment Doc + Doc Doc + Docs Doc + Handler string + HandlerComment Doc + HandlerDoc Doc + Method string + Path string + RequestType Type + ResponseType Type + func (r Route) GetAnnotation(key string) string + func (r Route) JoinedDoc() string + func (r Route) RequestTypeName() string + func (r Route) ResponseTypeName() string + type Service struct + Groups []Group + Name string + func (s Service) JoinPrefix() Service + func (s Service) Routes() []Route + type Tag struct + Key string + Name string + Options []string + type Tags struct + func Parse(tag string) (*Tags, error) + func (t *Tags) Get(key string) (*Tag, error) + func (t *Tags) Keys() []string + func (t *Tags) Tags() []*Tag + type Type interface + Comments func() []string + Documents func() []string + Name func() string