Predeclared type

Go uintptr type

Unsigned integer wide enough to contain the uninterpreted bits of a pointer. It is an integer, not a GC-tracked pointer; it does not keep an object alive. Avoid arbitrary pointer conversions. Example output: '16'.

Formal Syntax & Structure

go syntaxgo
uintptr

Working Example

Example Snippetgo
package main
import (  "fmt")
func main() {  var addressBits uintptr = 16  fmt.Println(addressBits)}
Go Reference