Probably a big noob question here, so please bear with me.
To send an HTTP POST request in Go with some body, I can do this:
var jsonStr = []byte(`{"someVar":"someValue"}`)
req, err := http.NewRequest("POST", APIURL, bytes.NewBuffer(jsonStr))
However, it seems that I can't use a variable instead of "someValue", like this:
someValue := "SomeValue"
var jsonStr = []byte(`{"someVar":someValue}`)
Can someone point me in the right direction?