MCPcopy Create free account
hub / github.com/tendermint/tendermint / String

Method String

libs/pubsub/query/syntax/parser.go:55–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (a *Arg) String() string {
56 if a == nil {
57 return ""
58 }
59 switch a.Type {
60 case TString:
61 return "'" + a.text + "'"
62 case TTime:
63 return "TIME " + a.text
64 case TDate:
65 return "DATE " + a.text
66 default:
67 return a.text
68 }
69}
70
71// Number returns the value of the argument text as a number, or a NaN if the
72// text does not encode a valid number value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected