MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / String

Method String

types/token.go:51–57  ·  view source on GitHub ↗

String returns token's symbol.

()

Source from the content-addressed store, hash-verified

49
50// String returns token's symbol.
51func (t TokenType) String() string {
52 if t < 0 || t >= SupportTokenNumber {
53 return "Unknown"
54 }
55
56 return TokenList[t]
57}
58
59// FromString returns token's number.
60func FromString(t string) TokenType {

Callers 7

TestTokenTypeFunction · 0.45
WaitBPChainServiceFunction · 0.45
CreateFunction · 0.45
insertDataFunction · 0.45
startMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestTokenTypeFunction · 0.36
startMethod · 0.36