package main
import (
"fmt"
_ "math"
"unsafe"
)
func main() {
var s1 = "한글"
fmt.Println(s1[0]);
}
I want to extract string element like s1[0]. But I didn't get the correct element. Just returned number. I don't know the meaning of the number. I think there'is a library which is unicode/utf8. But I don't know how I get the correct value from the element using this. I want to extract '한' this word. Can you help me how I can convert?