logo-MindMajix
PostGoLangGoLang
H
Harish Harsh

Posted on 16th June 2024|19 views

0
votes

Golang Rune To String

Can we convert a rune to a string in Golang?

1 answers
Answers
P
divija reddy

Posted on 16th June 2024| views

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
Name
Course *
Email *
Phone Number