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
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