Answers for "golang variable in string"

0

golang variable in string

package main

import (
	"fmt"
)

func main() {
	hello := "hello"
	helloWorld := fmt.Sprintf("%s world", hello)
	fmt.Println(helloWorld)
}
Posted by: Guest on July-16-2021

Browse Popular Code Answers by Language