I'm trying to add a value to a variable string in golang, without use printf because I'm using revel framework and this is for a web enviroment instead of console, this is the case:
data := 14
response := `Variable string content`
so I can't get variable data inside variable response, like this
response := `Variable string 14 content`
Any idea?
data
is anInteger
and you can not insert directly onString
on this way. Otherwise you will have the following error:invalid operation: "Variable string" + data (mismatched types string and int)
– Stralsund