func go/constant.ToInt
6 uses
go/constant (current package)
value.go#L844: func ToInt(x Value) Value {
value.go#L889: return ToInt(re)
go/types
expr.go#L289: x := constant.ToInt(x)
expr.go#L901: xval = constant.ToInt(x.val)
expr.go#L921: yval := constant.ToInt(y.val) // consider -1, 1.0, but not -1.1
typexpr.go#L524: if val := constant.ToInt(x.val); val.Kind() == constant.Int {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)