Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Runes

  • rune

  • int32

  • alias for int32

package main

import (
	"fmt"
)

func main() {
	rn := 'a'
	fmt.Println(rn)

	fmt.Printf("%T\n", rn)
	fmt.Printf("%c\n", rn)

	fmt.Println(rn == rune(97))
	fmt.Println(97 == int32(rn))

	fmt.Printf("char: %c\n", 97) // to display
	fmt.Printf("code: %d\n", rn) // to display
}
97
int32
a
true
true
char: a
code: 97