hcl/json: update tokentype_string.go for latest version of stringer

This commit is contained in:
Martin Atkins 2018-02-26 08:38:56 -08:00
parent cc8b14cf45
commit 4719b76b52

View File

@ -2,7 +2,7 @@
package json package json
import "fmt" import "strconv"
const _tokenType_name = "tokenInvalidtokenCommatokenColontokenEqualstokenKeywordtokenNumbertokenStringtokenBrackOtokenBrackCtokenBraceOtokenBraceCtokenEOF" const _tokenType_name = "tokenInvalidtokenCommatokenColontokenEqualstokenKeywordtokenNumbertokenStringtokenBrackOtokenBrackCtokenBraceOtokenBraceCtokenEOF"
@ -25,5 +25,5 @@ func (i tokenType) String() string {
if str, ok := _tokenType_map[i]; ok { if str, ok := _tokenType_map[i]; ok {
return str return str
} }
return fmt.Sprintf("tokenType(%d)", i) return "tokenType(" + strconv.FormatInt(int64(i), 10) + ")"
} }