Skip to content

Instantly share code, notes, and snippets.

@cjgiridhar
Created January 23, 2019 06:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cjgiridhar/11426584d413463a76aef32035841792 to your computer and use it in GitHub Desktop.
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