text/template/parse.NumberNode.IsInt (field)
11 uses
text/template/parse (current package)
node.go#L617: IsInt bool // Number has an integral value.
node.go#L640: n.IsInt = true
node.go#L673: n.IsInt = true
node.go#L681: if n.IsInt {
node.go#L698: if !n.IsInt && float64(int64(f)) == f {
node.go#L699: n.IsInt = true
node.go#L708: if !n.IsInt && !n.IsUint && !n.IsFloat {
node.go#L720: n.IsInt = float64(int64(n.Float64)) == n.Float64
node.go#L721: if n.IsInt {
text/template
exec.go#L511: case constant.IsInt:
exec.go#L863: if n, ok := n.(*parse.NumberNode); ok && n.IsInt {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |