jx/internal/ext/stringreader.go
Matthew Rich 0da6c3db75
Some checks failed
Lint / golangci-lint (push) Failing after 10m32s
Declarative Tests / test (push) Successful in 35s
add interfaces to remove WriterTo
2024-10-02 19:22:47 +00:00

17 lines
262 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package ext
import (
"io"
"strings"
)
func NewStringReader(value string) io.Reader {
return stringReader{strings.NewReader(value)}
}
type stringReader struct {
io.Reader
}