Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expr-lang/expr
/ String
Method
String
parser/lexer/token.go:27–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
}
26
27
func
(t Token) String() string {
28
if
t.Value ==
""
{
29
return
string(t.Kind)
30
}
31
return
fmt.Sprintf(
"%s(%#v)"
, t.Kind, t.Value)
32
}
33
34
func
(t Token) Is(kind Kind, values ...string) bool {
35
if
kind != t.Kind {
Callers
nothing calls this directly
Calls
1
Sprintf
Method · 0.80
Tested by
no test coverage detected