Documentation ¶
Index ¶
Constants ¶
View Source
const CompositeDataStringSeparator = ","
View Source
const ListDataStringSeparator = ",,"
View Source
const MaxListLength = 20
Variables ¶
View Source
var ( AccAddressDataWeight = sdkTypes.NewInt(90) BooleanDataWeight = sdkTypes.NewInt(1) DecDataWeight = sdkTypes.NewInt(16) HeightDataWeight = sdkTypes.NewInt(8) IDDataWeight = sdkTypes.NewInt(64) ListDataWeight = sdkTypes.NewInt(2560) LinkedDataWeight = sdkTypes.NewInt(384) NumberDataWeight = sdkTypes.NewInt(8) StringDataWeight = sdkTypes.NewInt(256) )
View Source
var ( AccAddressDataTypeID = baseIDs.NewStringID("A") AnyDataTypeID = baseIDs.NewStringID("Y") BooleanDataTypeID = baseIDs.NewStringID("B") DecDataTypeID = baseIDs.NewStringID("D") HeightDataTypeID = baseIDs.NewStringID("H") ListDataTypeID = baseIDs.NewStringID("L") LinkedDataTypeID = baseIDs.NewStringID("U") NumberDataTypeID = baseIDs.NewStringID("N") StringDataTypeID = baseIDs.NewStringID("S") )
TODO use enum
View Source
var IsValidFileExtension = regexp.MustCompile(`(?:jpg|jpeg|png|gif|bmp|svg|mp4|avi|mov|wmv|flv|mp3|wav|ogg|aac|pdf)$`).MatchString
View Source
var IsValidStringData = regexp.MustCompile(`^[\pL\pM\pZ\pS\pN\pP]{0,280}$`).MatchString
View Source
var ListBytesSeparator = []byte{'\\', '#'}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.