Versions in this module Expand all Collapse all v1 v1.0.2 Oct 18, 2018 v1.0.1 Oct 18, 2018 Changes in this version + const BaseAnn + const BodyAnn + const Bytes + const ConflictAnnotation + const ConnectAnn + const CookieAnn + const DeleteAnn + const DuplicatedAnnotation + const DuplicatedHttpMethod + const EncodingJSON + const EncodingXML + const ErrorToken + const FieldBaseUrl + const FieldCookies + const FieldHeader + const FileAnn + const Form + const FormatPkg + const GetAnn + const HTML + const HeadAnn + const HeaderAnn + const HttpPkg + const HttpRequest + const HttpResponse + const IO + const IOReader + const IdBody + const IdBodyWriter + const IdClient + const IdCookie + const IdData + const IdDataMap + const IdError + const IdFile + const IdFilePath + const IdHeader + const IdHeaderKey + const IdHeaderSlice + const IdHeaderValue + const IdNotExist + const IdPartWriter + const IdRegexp + const IdRequest + const IdResponse + const IdResult + const IdResultData + const IdStatusCode + const IdUri + const IdUrl + const IntPlaceholder + const IntToken + const Ioutil + const JSON + const LF + const Multipart + const MultipartPkg + const NetURL + const OS + const OptionsAnn + const Other + const ParamAnn + const PatchAnn + const PatternIdTypeMustBeIntOrString + const PatternKeyMustNotBeEmpty + const PostAnn + const PutAnn + const ResultAnn + const SingleBodyAnn + const SingleBodyWithMultiBodyVars + const Src + const StringPlaceholder + const StringToken + const StringsPkg + const Textproto + const TokenType + const TraceAnn + const TypeErr + const TypeFile + const TypeIOReader + const TypeInt + const TypeRequest + const TypeResponse + const TypeStatusCode + const TypeString + const UnHTMLPkg + const UnsupportedAnnotationValue + const XML + const ZeroStr + var IdRe = regexp.MustCompile(IdRegexp) + func ConflictAnnotationError(ann string, value fmt.Stringer) error + func DuplicatedAnnotationError(ann string) error + func DuplicatedHttpMethodError(method string) error + func GetType(name string) types.Type + func IdNotExistError(id string) error + func Impl(service *Service, pkg string) (code string, err error) + func PatternIdTypeMustBeIntOrStringError(id string) error + func UnsupportedAnnotationValueError(ann, value string) error + type BodyMeta struct + type BodyType string + type IdList map[string]bool + type Method struct + func NewMethod(srv *Service, rawMethod *types.Func) *Method + type MethodMeta struct + func (meta *MethodMeta) TryAddCookie(key, value string) (err error) + func (meta *MethodMeta) TryAddHeader(key, value string) (err error) + func (meta *MethodMeta) TryAddParam(key, pattern string, typ ParamType) (err error) + func (meta *MethodMeta) TrySetBodyType(value string) (err error) + func (meta *MethodMeta) TrySetMethod(httpMethod, uriPattern string) (err error) + func (meta *MethodMeta) TrySetResultType(value string) (err error) + func (meta *MethodMeta) TrySetSingleBodyType(value string) (err error) + type ParamMeta struct + func NewParamMeta(param *types.Var) (meta *ParamMeta) + type ParamType int + type PatternMeta struct + type Service struct + func NewService(name string, service *types.Interface) *Service + func (srv *Service) Complete() bool + func (srv *Service) InitComments(cmap ast.CommentMap) *Service + func (srv *Service) SetMethod(rawMethod *types.Func) + func (srv *Service) TryAddField(node *ast.Field) + func (srv *Service) TrySetNode(node *ast.GenDecl) + func (srv Service) String() string + type ServiceMeta struct