binary - octal - hex
This representation exists only from 1.13
examples/numbers/numbers.go
package main import "fmt" func main() { decimal := 42 binary := 0b101010 octal := 0o52 hexa := 0x2A fmt.Println(decimal) fmt.Println(binary) fmt.Println(octal) fmt.Println(hexa) }
42 42 42 42