...

/

Puzzle 17 Explanation: String Conversion

Puzzle 17 Explanation: String Conversion

Understand how to perform string conversions in Go.

We'll cover the following...

Try it yourself

Try running the code below to see the result for yourself.

Go (1.16.5)
package main
import (
"fmt"
)
func main() {
i := 169
s := string(i)
fmt.Println(s)
}

Explanation

The string type supports ...