Predeclared type

Go uint type

Unsigned integer with implementation-dependent width of 32 or 64 bits, the same width as int. Subtracting beyond zero wraps at runtime. Example output: '1'.

Formal Syntax & Structure

go syntaxgo
uint

Working Example

Example Snippetgo
package main
import (  "fmt")
func main() {  var flags uint = 5  fmt.Println(flags & 1)}
Go Reference