SyntaxFix
Write A Post
Hire A Developer
Questions
func copyToString(r io.Reader) (res string, err error) { var sb strings.Builder if _, err = io.Copy(&sb, r); err == nil { res = sb.String() } return }