GO tipo casting
package main
import (
"fmt"
)
func main() {
Name := []byte("John Doe")
fmt.Println("My name is", string(Name))
}
Restu Wahyu Saputra
package main
import (
"fmt"
)
func main() {
Name := []byte("John Doe")
fmt.Println("My name is", string(Name))
}
// variable of float type
var floatValue float = 9.8
// convert float to int
var intValue int = int(floatValue)