fmt.Sprintf()
package main import "fmt" func main() { s := fmt.Sprintf("Size: %d MB.", 90) fmt.Println(s) }
Output :
Size: 90 MB.