See https://github.com/gopherjs/gopherjs/issues/167 for confirmation that it makes sense. Should note that using []byte parameter ends up being an ArrayBufferView, which XHR send accepts to transfer binary data.