Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTSCaseFunc = strcase.UpperCamelCase
View Source
var LanguageMapping = map[string]map[string]LanguageFieldMapping{ "bool": { "ts": { Type: "boolean", IntermediateType: "number", Func: "!!", }, }, "int8": { "ts": { Type: "number", }, }, "uint8": { "ts": { Type: "number", }, }, "int16": { "ts": { Type: "number", }, }, "uint16": { "ts": { Type: "number", }, }, "int32": { "ts": { Type: "number", }, }, "varint32": { "ts": { Type: "number", }, }, "uint32": { "ts": { Type: "number", }, }, "varuint32": { "ts": { Type: "number", }, }, "int64": { "ts": { Type: "string", IntermediateType: "number", Method: "toString", RawType: "string | number", }, }, "uint64": { "ts": { Type: "string", IntermediateType: "number", Method: "toString", RawType: "string | number", }, }, "int128": { "ts": { Type: "string", }, }, "uint128": { "ts": { Type: "string", }, }, "float32": { "ts": { Type: "number", Func: "Number.parseFloat", IntermediateType: "string", }, }, "float64": { "ts": { Type: "number", Func: "Number.parseFloat", IntermediateType: "string", }, }, "float128": { "ts": { Type: "string", }, }, "time_point": { "ts": { Type: "string", }, }, "time_point_sec": { "ts": { Type: "string", }, }, "block_timestamp_type": { "ts": { Type: "string", }, }, "name": { "ts": { Type: "string", }, }, "bytes": { "ts": { Type: "string", }, }, "string": { "ts": { Type: "string", }, }, "checksum160": { "ts": { Type: "string", }, }, "checksum256": { "ts": { Type: "string", }, }, "checksum512": { "ts": { Type: "string", }, }, "public_key": { "ts": { Type: "string", }, }, "signature": { "ts": { Type: "string", }, }, "symbol": { "ts": { Type: "Symbol", Func: "new types.Symbol", FullType: "types.Symbol", IntermediateType: "string", }, }, "symbol_code": { "ts": { Type: "string", }, }, "asset": { "ts": { Type: "Asset", Func: "new types.Asset", IntermediateType: "string", FullType: "types.Asset", }, }, "extended_asset": { "ts": { Type: "ExtendedAsset", Func: "new types.ExtendedAsset", IntermediateType: "ExtendedAssetType", FullType: "types.ExtendedAsset", IntermediateFullType: "types.ExtendedAssetType", }, }, }
Functions ¶
Types ¶
type Field ¶
type Field struct { Name string Type string FullType string IntermediateType string IntermediateFullType string RawType string Func string Method string ArraysCount int IsStruct bool GenerateMapper bool }
func (Field) FormatArrayValue ¶ added in v0.0.10
type LanguageFieldMapping ¶
Click to show internal directories.
Click to hide internal directories.