1
0
mirror of https://github.com/kataras/iris.git synced 2026-07-31 00:19:50 +00:00

feat(token): add String() method to token Type

Add String() method to the token Type that returns the human-readable name
of the token (e.g., "LBRACE" for '{'), with fallback to numeric value for
unknown types. Also add typeNames map for token type name lookups.
This commit is contained in:
Gerasimos (Makis) Maropoulos
2026-07-27 12:34:01 +03:00
parent 5082f0ac7f
commit 7bedaf55a0
3 changed files with 29 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ require (
github.com/iris-contrib/schema v0.0.6
github.com/json-iterator/go v1.1.12
github.com/kataras/blocks v0.0.8
github.com/kataras/golog v0.1.15
github.com/kataras/golog v0.1.12
github.com/kataras/jwt v0.1.17
github.com/kataras/neffos v0.0.24
github.com/kataras/pio v0.0.13