I'm using the stringbuilder:
var sb strings.Builder
I need to convert this to []byte to finally send it with bytes.NewBuffer() via http post. I need this to be as quick as possible.
Currently I do it as follows:
var sendText = sb.String()
var byteSend = []byte(sendText)
Is this the best way of doing this?