Golang Variable In String

[Solved] Golang Variable In String | Go - Code Explorer | yomemimo.com
Question : golang variable in string

Answered by : peter-gebri

package main
import (	"fmt"
)
func main() {	hello := "hello"	helloWorld := fmt.Sprintf("%s world", hello)	fmt.Println(helloWorld)
}

Source : | Last Update : Fri, 23 Jul 21

Answers related to golang variable in string

Code Explorer Popular Question For Go