Documentation ¶
Index ¶
Constants ¶
View Source
const DeprecationComment = "// Deprecated: Do not use."
View Source
const Int64Type = "int64"
View Source
const IntType = "int"
View Source
const Required = "required"
View Source
const StringType = "string"
View Source
const UIntType = "uint"
Variables ¶
View Source
var VERSION = "1.0.0"
Functions ¶
func JSONSnakeCase ¶
Types ¶
type ClientParam ¶
type FieldParam ¶
type FieldParam struct { FType string FName string FTail string FLeading string FEnums []string FMin int FMax int FRequired bool }
func ParseFieldLeading ¶
func ParseFieldLeading(field *protogen.Field) *FieldParam
ParseFieldLeading 解析field注释
func (*FieldParam) GetEnums ¶
func (fp *FieldParam) GetEnums() string
type HTTPParam ¶
type HTTPParam struct { Summary string MethodName string Url string UrlJsTs string UrlParamList []URLParam Permission string Void bool ClientParamList []ClientParam Download bool Bind bool }
func ParseRpcLeading ¶
ParseRpcLeading 解析rpc方法注释
type ServiceParam ¶
type ServiceParam struct {
Root string
}
func ParseServiceLeading ¶
func ParseServiceLeading(comments string) ServiceParam
Click to show internal directories.
Click to hide internal directories.