mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
hugio: Rename strigReadSeeker => stringReadSeeker
This commit is contained in:
parent
3a665ddbf9
commit
b72f909725
1 changed files with 4 additions and 4 deletions
|
@ -55,17 +55,17 @@ func NewReadSeekerNoOpCloser(r ReadSeeker) ReadSeekCloser {
|
|||
// NewReadSeekerNoOpCloserFromString uses strings.NewReader to create a new ReadSeekerNoOpCloser
|
||||
// from the given string.
|
||||
func NewReadSeekerNoOpCloserFromString(content string) ReadSeekCloser {
|
||||
return strigReadSeeker{s: content, readSeekerNopCloser: readSeekerNopCloser{strings.NewReader(content)}}
|
||||
return stringReadSeeker{s: content, readSeekerNopCloser: readSeekerNopCloser{strings.NewReader(content)}}
|
||||
}
|
||||
|
||||
var _ StringReader = (*strigReadSeeker)(nil)
|
||||
var _ StringReader = (*stringReadSeeker)(nil)
|
||||
|
||||
type strigReadSeeker struct {
|
||||
type stringReadSeeker struct {
|
||||
s string
|
||||
readSeekerNopCloser
|
||||
}
|
||||
|
||||
func (s *strigReadSeeker) ReadString() string {
|
||||
func (s *stringReadSeeker) ReadString() string {
|
||||
return s.s
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue