Post

GoLangGoLang

H
Harish Harsh

Posted on 27th February 2024|19 views

0
votes

Golang Rune To String

Can we convert a rune to a string in Golang?

Answers
P
divija reddy

Posted on 27th February 2024

We can convert a slice of runes to a string like this

ru := []rune{'\u0071', '\u0072', '\u0073', '\u75E5', -1}

st := string(ru)

fmt.Println(st)

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos