Answers for "go make string from char array"

Go
0

go make string from char array

chars := []rune{'h','e','l','l','o'}
str := string(chars)
fmt.Println(str) // hello
Posted by: Guest on May-12-2021

Code answers related to "go make string from char array"

Browse Popular Code Answers by Language