MCPcopy Create free account
hub / github.com/pquerna/ffjson / String

Method String

fflib/v1/lexer.go:626–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

624}
625
626func (tok FFTok) String() string {
627 switch tok {
628 case FFTok_init:
629 return "tok:init"
630 case FFTok_bool:
631 return "tok:bool"
632 case FFTok_colon:
633 return "tok:colon"
634 case FFTok_comma:
635 return "tok:comma"
636 case FFTok_eof:
637 return "tok:eof"
638 case FFTok_error:
639 return "tok:error"
640 case FFTok_left_brace:
641 return "tok:left_brace"
642 case FFTok_left_bracket:
643 return "tok:left_bracket"
644 case FFTok_null:
645 return "tok:null"
646 case FFTok_right_brace:
647 return "tok:right_brace"
648 case FFTok_right_bracket:
649 return "tok:right_bracket"
650 case FFTok_integer:
651 return "tok:integer"
652 case FFTok_double:
653 return "tok:double"
654 case FFTok_string:
655 return "tok:string"
656 case FFTok_comment:
657 return "comment"
658 }
659
660 panic(fmt.Sprintf("unknown token: %d", int(tok)))
661}
662
663/* a lookup table which lets us quickly determine three things:
664 * cVEC - valid escaped control char

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected