Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Primitive Data Types - Byte and Rune
package main
import "fmt"
func main() {
var myChar byte = 'A' //Stores ASCII characters
var myUnicode rune = '♥' //Stores Unicode characters
fmt.Printf("%c = %d and %c = %U\n", myChar, myChar, myUnicode, myUnicode)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.