Documentation ¶
Index ¶
- Variables
- func DebugJSON(v interface{}) string
- func LowercaseFirstLetter(original string) string
- func ParseGenericDeclaration(infoToFill *TdInfo, genDeclaration *ast.GenDecl, fileName string) error
- func ParseTdprotoFile(infoToFill *TdInfo, fileName string, fileAst *ast.File) error
- func SnakeCaseToLowerCamel(original string) string
- func ToSnakeCase(original string) string
- func UppercaseFirstLetter(original string) string
- type TdConstFields
- type TdEnum
- type TdInfo
- type TdMapType
- type TdQuery
- type TdStruct
- type TdStructField
- type TdType
Constants ¶
This section is empty.
Variables ¶
View Source
var GolangPrimitiveTypes = map[string]string{
"string": "",
"int": "",
"int64": "",
"uint16": "",
"uint": "",
"bool": "",
"interface{}": "",
"ISODateTimeString": "",
"time.Time": "",
}
Functions ¶
func LowercaseFirstLetter ¶ added in v1.27.5
func ParseGenericDeclaration ¶ added in v1.27.5
func ParseTdprotoFile ¶ added in v1.27.5
func SnakeCaseToLowerCamel ¶ added in v1.27.5
func ToSnakeCase ¶ added in v1.27.5
func UppercaseFirstLetter ¶ added in v1.27.5
Types ¶
type TdConstFields ¶ added in v1.27.5
type TdInfo ¶ added in v1.27.5
type TdInfo struct { TdStructs map[string]TdStruct TdTypes map[string]TdType TdEvents map[string]string TdMapTypes map[string]TdMapType TdConsts []TdConstFields TdQueries map[string]TdQuery }
func ParseTdproto ¶ added in v1.27.5
type TdStruct ¶ added in v1.27.5
type TdStruct struct { Name string Help string Fields []TdStructField ReadOnly bool AnonnymousFields []string FileName string }
func (TdStruct) GetAllJsonFields ¶ added in v1.32.0
func (tds TdStruct) GetAllJsonFields(tdInfo *TdInfo) []TdStructField
func (TdStruct) GetStructAnonymousStructs ¶ added in v1.27.5
func (TdStruct) IsEventParams ¶ added in v1.33.6
type TdStructField ¶ added in v1.27.5
Click to show internal directories.
Click to hide internal directories.