IsBacktickString returns true if the given STRING uses backticks
()
| 91 | |
| 92 | // IsBacktickString returns true if the given STRING uses backticks |
| 93 | func (tk *Token) IsBacktickString() bool { |
| 94 | if tk.Tok != token.STRING { |
| 95 | return false |
| 96 | } |
| 97 | return (tk.Str[0] == '`') |
| 98 | } |
| 99 | |
| 100 | // IsGo returns true if the given token is a Go Keyword or Comment |
| 101 | func (tk *Token) IsGo() bool { |
no outgoing calls
no test coverage detected