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.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |