Standard library / go/types
go/types.Basic.Info()
Returns classification bit flags. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func (b *Basic) Info() BasicInfoReturn Value
BasicInfo
Returns classification bit flags.
Working Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { fmt.Println(types.Typ[types.Int].Info()&types.IsInteger != 0) }