Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "v0.1.1"
Functions ¶
func IsBaseType ¶
func ParamsToArgs ¶
Types ¶
type Generator ¶
type Generator struct { *protogen.Plugin *protogen.GeneratedFile PbFile *protogen.File // contains filtered or unexported fields }
func NewGenerator ¶
type ValidateContext ¶
type ValidateContext struct { *parser.Validation RawField *protogen.Field PbFile *protogen.File Msg *protogen.Message FieldName string // Go name for field RawFieldName string // raw field name in idl GetNameFunc string // Get***() func for getting the generated value IsOptional bool // contains filtered or unexported fields }
func (*ValidateContext) GenID ¶
func (v *ValidateContext) GenID(prefix string) (name string)
Click to show internal directories.
Click to hide internal directories.