In Go, how to create a Reader from a string? Many APIs use a Reader as its input. In Go, thestrings.NewReader(s) library function creates a Reader from a string.Check the doc at: https://golang.org/pkg/strings/#NewReaderRelated posts:How to Print Notes on a PDF File with Acrobat, Adobe Reader and Foxit Reader How to convert a byte to io.Reader in Go? How to install Adobe Reader on Linux Mint 17? How to split a string by string in Bash? How to `cut` a String Using a String as the Delimiter in Bash? How to check whether a string starts with another string in C++? ld-linux.so Taking High CPU Usage Caused by Adobe Reader In Golang, how to print string to STDERR?