Answers for "print unicode character in golang"

Go
0

print unicode character in golang

package main

import (
	"fmt"
)

func main() {

	for i := 33; i <= 126; i++ {
		//fmt.Printf("%d: %c  ", i, i) //Prints ONLY the unicode chars
		fmt.Printf("%d: %#U  ", i, i) //Prints the unicode chars and values as well
	}
}
Posted by: Guest on May-04-2020

Browse Popular Code Answers by Language