How to convert a byte[] to io.Reader in Go? Posted on Mar 24, 2018 by Eric Ma In QA How to convert a byte[] to io.Reader in Go directly? You can use the NewReader() func from the bytes package of Go to convert bytes to io.Reader. For example, reader := bytes.NewReader(thebytes) Read more: How to Print Notes on a PDF File with Acrobat, Adobe Reader and Foxit Reader How to get a 10-byte length random string in bash How to move cursor to a specific byte in Vim? How to create a Reader from a string in Go? How to install Adobe Reader on Linux Mint 17? In Golang, how to convert a string to unicode rune array and back? How to convert between dos and unix file coding in Emacs? How to convert between Simplified Chinese and Traditional Chinese characters in text files on Linux?