Standard library / go/types
go/types.BasicInfo
Bit flags classify basic types; multiple properties may be set. Expected stdout: 'true true\n'.
Formal Syntax & Structure
go syntaxgo
type BasicInfo intWorking Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { var i types.BasicInfo = types.Typ[types.Uint].Info() fmt.Println(i&types.IsInteger != 0, i&types.IsUnsigned != 0)}