Standard library / reflect
reflect.Uintptr
Kind constant identifying unsigned integer capable of holding pointer bits, not a GC-tracked pointer. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const Uintptr Kind = 12Working Example
Example Snippetgo
package main
import ( "fmt" "reflect")
func main() { fmt.Println(reflect.TypeOf(uintptr(0)).Kind() == reflect.Uintptr) }