Versions in this module Expand all Collapse all v0 v0.4.5 Mar 6, 2023 v0.4.4 Jul 18, 2022 v0.4.3 Mar 15, 2022 v0.4.2 Feb 26, 2022 Changes in this version type MethodAnnotation + Ops []*Op v0.4.1 Dec 13, 2021 Changes in this version + const OptionNoBody + func GetDescriptionFromDoc(doc []string) string + func ParseMetadata(doc []string) (*spec.Metadata, error) + func ParseParamOptions(argName, s string) ([]*spec.Parameter, error) + func ParseSuccess(s string, method *ifacetool.Method) (*spec.Response, error) + type Aliases map[string]string + func ParseAliases(doc []string) (Aliases, error) + func (a Aliases) Eval(value string) (string, error) + func (a Aliases) Set(key, value string) + type Body struct + Field string + Manipulations map[string]*Manipulation + func ParseBody(s string) (*Body, error) + type InterfaceAnnotation struct + Aliases Aliases + Metadata *spec.Metadata + func ParseInterfaceAnnotation(doc []string) (*InterfaceAnnotation, error) + type Manipulation struct + Description string + Name string + Type string + type MethodAnnotation struct + Body *Body + Op *Op + Params map[string]*Param + Success *spec.Response + Tags []string + func ParseMethodAnnotation(method *ifacetool.Method) (*MethodAnnotation, error) + type Op struct + Method string + Pattern string + func ParseOp(s string) (*Op, error) + type Param struct + ArgName string + Params []*spec.Parameter + func ParseParams(s string) ([]*Param, error)