convert string to io reader golang
package main
import (
"io"
"strings"
)
func main() {
str := "Hello, this is a string"
reader := strings.NewReader(str)
// Now, 'reader' is an io.Reader that reads from the 'str' string.
_ = reader
}