Documentation ¶
Index ¶
- Constants
- func GoFmt(raw []byte) []byte
- func IsWrap(s string, quotes ...string) bool
- func LowerName(name string) string
- func ParseTags(tags ...string) map[string]string
- func Run(plugin *protogen.Plugin) error
- func Trim(s string, cuts ...rune) string
- func UpperName(name string) string
- func Wrap(s string, quotes ...string) string
- type Comment
- type Enum
- type EnumField
- type File
- type Import
- type Message
- type MessageField
- type Param
- type Service
- type ServiceMethod
Constants ¶
View Source
const EmptyImport = protogen.GoImportPath("")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type Message ¶
type Message struct { Name string Fields []MessageField Comment }
type MessageField ¶
type MessageField struct { Name string JsName string Type string IsArray bool MapKey string Pointer bool Index int Comment }
func (MessageField) GoFieldType ¶
func (field MessageField) GoFieldType() string
func (MessageField) JSFieldType ¶
func (field MessageField) JSFieldType() string
type Param ¶
func ParseParam ¶
type Service ¶
type Service struct { Name string Methods []ServiceMethod Comment }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.