Source File
kind_string.go
Belonging Package
go/constant
// Code generated by "stringer -type Kind"; DO NOT EDIT.
package constant
import
func () {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var [1]struct{}
_ = [Unknown-0]
_ = [Bool-1]
_ = [String-2]
_ = [Int-3]
_ = [Float-4]
_ = [Complex-5]
}
const _Kind_name = "UnknownBoolStringIntFloatComplex"
var _Kind_index = [...]uint8{0, 7, 11, 17, 20, 25, 32}
func ( Kind) () string {
if < 0 || >= Kind(len(_Kind_index)-1) {
return "Kind(" + strconv.FormatInt(int64(), 10) + ")"
}
return _Kind_name[_Kind_index[]:_Kind_index[+1]]
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)