Versions in this module Expand all Collapse all v0 v0.0.9 Jul 5, 2024 Changes in this version type Document + Scripts []template.HTML v0.0.8 Jul 5, 2024 Changes in this version + type Action struct + Controller *Controller + Descriptions []*CommentDescription + Errors []*Error + ExportedBase string + ExportedLink string + ExportedName string + ExportedPath string + File string + Hash string + Headers []*Header + Ignored bool + Line int + Name string + RequestBody []*Entry + RequestBodyStruct StructPath + RequestBodyType StructBodyType + RequestMethod string + RequestSampleCode template.HTML + RequestUrl string + ResponseBody []*Entry + ResponseBodyStruct StructPath + ResponseBodyType StructBodyType + ResponseSampleCode template.HTML + Title string + func NewAction(name string) *Action + func (o *Action) Default() + func (o *Action) Export() (err error) + func (o *Action) Reflect() (err error) + func (o *Action) SetComment(c *Comment) + type Annotation struct + Key AnnotationKey + Values []string + func NewAnnotation(key string) *Annotation + func (o *Annotation) First() (val string) + func (o *Annotation) FirstBool() bool + func (o *Annotation) Length() int + func (o *Annotation) ToDomain() (domain *Domain) + func (o *Annotation) ToError() (error *Error) + func (o *Annotation) ToHeader() (header *Header) + func (o *Annotation) With(val string) *Annotation + type AnnotationKey string + const AnnotationKeyDomain + const AnnotationKeyError + const AnnotationKeyHeader + const AnnotationKeyIgnore + const AnnotationKeyRequest + const AnnotationKeyRequestList + const AnnotationKeyResponse + const AnnotationKeyResponseList + const AnnotationKeyResponsePaging + const AnnotationKeyRoute + const AnnotationKeyRoutePrefix + func NewAnnotationKey(key string) AnnotationKey + func (o AnnotationKey) Is(key AnnotationKey) bool + func (o AnnotationKey) IsDomain() bool + func (o AnnotationKey) IsError() bool + func (o AnnotationKey) IsHeader() bool + type Comment struct + Annotations []*Annotation + Descriptions []*CommentDescription + Title string + func NewComment() *Comment + func (o *Comment) Parse(lines []string, prefix string) *Comment + type CommentDescription struct + Codes []template.HTML + Text []template.HTML + func NewCommentDescription() *CommentDescription + type Controller struct + Actions []*Action + Descriptions []*CommentDescription + Document *Document + Errors []*Error + File string + Headers []*Header + Ignored bool + Line int + Name string + RoutePrefix string + Title string + func NewController(name string) *Controller + func (o *Controller) Add(action *Action) + func (o *Controller) Export() (err error) + func (o *Controller) Reflect() (err error) + func (o *Controller) SetComment(c *Comment) + type Document struct + AbsDir string + ControllerPath string + Controllers map[string]*Controller + Descriptions []*CommentDescription + Domain string + Domains []*Domain + Errors []*Error + ExportedBase string + ExportedLink string + ExportedPath string + Ext base.Format + Headers []*Header + ModuleName string + OutputPath string + Time string + Title string + func New() *Document + func (o *Document) Acquire(path, cn string) (controller *Controller) + func (o *Document) Export() (err error) + func (o *Document) HyperLink(uri, mtd string) (path, link, name, based string) + func (o *Document) Json() string + func (o *Document) Load(path string) (err error) + func (o *Document) LoadWithBody(body []byte) error + func (o *Document) LoadWithJson(str string) error + func (o *Document) MergeError(a, b []*Error) []*Error + func (o *Document) MergeHeader(a, b []*Header) []*Header + func (o *Document) Reflect() (err error) + func (o *Document) Save(path string) (err error) + func (o *Document) SaveRunner(path, pathJson string) (err error) + func (o *Document) SetComment(c *Comment) + func (o *Document) SortFields(entries []*Entry) []*Entry + func (o *Document) SortResults(entries []*Entry, arr bool) template.HTML + func (o *Document) WriteTo(path string, content string) (err error) + type Domain struct + Host string + Label string + type Entry struct + Child []*Entry + Condition string + Description template.HTML + IsArray bool + IsStruct bool + Label string + Level []int + Mock any + Name string + Required bool + Type string + func NewEntry(field *ref.Field, level int) *Entry + func (o *Entry) With(field *ref.Field) *Entry + type Error struct + Code any + Description string + Message string + type Header struct + Key string + Label string + Value string + type StructBodyType string + const StructBodyTypeList + const StructBodyTypeObject + const StructBodyTypePaging + func (o StructBodyType) Array() bool + type StructPath string + func (o StructPath) Scan() (fields []*Entry, err error) + func (o StructPath) String() string v0.0.7 Jul 4, 2024 v0.0.6 Jul 4, 2024 v0.0.5 Jul 1, 2024 v0.0.4 Jul 1, 2024 v0.0.3 Jun 28, 2024 v0.0.2 Jun 28, 2024 v0.0.1 Jun 27, 2024