func go/constant.Sign
13 uses
go/constant (current package)
value.go#L655: func Sign(x Value) int {
value.go#L672: return Sign(x.re) | Sign(x.im)
value.go#L910: if Sign(x.im) == 0 {
go/types
builtins.go#L293: if isNumeric(x.typ) && constant.Sign(constant.Imag(x.val)) == 0 {
expr.go#L336: return constant.Sign(x) >= 0 && n <= int(s)
expr.go#L338: return constant.Sign(x) >= 0 && n <= 64
expr.go#L922: if yval.Kind() == constant.Int && constant.Sign(yval) < 0 {
expr.go#L1143: if (x.mode == constant_ || allInteger(x.typ)) && y.mode == constant_ && constant.Sign(y.val) == 0 {
expr.go#L1153: if constant.Sign(re2) == 0 && constant.Sign(im2) == 0 {
index.go#L395: if !allowNegative && constant.Sign(x.val) < 0 {
golang.org/x/tools/internal/gcimporter
bexport.go#L611: sign := constant.Sign(x)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)