func go/constant.Sign
12 uses
go/constant (current package)
value.go#L665: func Sign(x Value) int {
value.go#L682: return Sign(x.re) | Sign(x.im)
value.go#L920: if Sign(x.im) == 0 {
go/types
builtins.go#L303: if isNumeric(x.typ) && constant.Sign(constant.Imag(x.val)) == 0 {
const.go#L130: return constant.Sign(x) >= 0 && n <= int(s)
const.go#L132: return constant.Sign(x) >= 0 && n <= 64
expr.go#L618: if yval.Kind() == constant.Int && constant.Sign(yval) < 0 {
expr.go#L808: if (x.mode == constant_ || allInteger(x.typ)) && y.mode == constant_ && constant.Sign(y.val) == 0 {
expr.go#L818: if constant.Sign(re2) == 0 && constant.Sign(im2) == 0 {
index.go#L397: if !allowNegative && constant.Sign(x.val) < 0 {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)