What kind of API? FWIW, an octet stream is conventionally represented as an
io.Reader in Go, and you can convert to a byte array using ioutil.ReadAll.

See https://golang.org/pkg/io#Reader and
https://golang.org/pkg/io/ioutil#ReadAll


On Thu, 13 Dec 2018 at 12:01, akshita babel <akshitababel.1...@gmail.com>
wrote:

> Hey, can anyone guide me on how to take octet stream as input in API
> and/or how to convert octet stream to byte array using golang
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to