github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/pgwire/pgwirebase/pgnumericsign_string.go (about) 1 // Code generated by "stringer -type=PGNumericSign"; DO NOT EDIT. 2 3 package pgwirebase 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[PGNumericPos-0] 12 _ = x[PGNumericNeg-16384] 13 } 14 15 const ( 16 _PGNumericSign_name_0 = "PGNumericPos" 17 _PGNumericSign_name_1 = "PGNumericNeg" 18 ) 19 20 func (i PGNumericSign) String() string { 21 switch { 22 case i == 0: 23 return _PGNumericSign_name_0 24 case i == 16384: 25 return _PGNumericSign_name_1 26 default: 27 return "PGNumericSign(" + strconv.FormatInt(int64(i), 10) + ")" 28 } 29 }