Skip to content

Instantly share code, notes, and snippets.

Created January 23, 2019 06:25
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