diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-03 17:25:08 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-03 17:25:34 +0100 |
commit | b72f909725a9dc2cc98cf003f50575e815f747f8 (patch) | |
tree | e66684f203793c6a10aa2308abb35e9082402fe4 /common | |
parent | 3a665ddbf922cb3956710b3d2fb6843142d69e2c (diff) | |
download | hugo-b72f909725a9dc2cc98cf003f50575e815f747f8.tar.gz hugo-b72f909725a9dc2cc98cf003f50575e815f747f8.zip |
hugio: Rename strigReadSeeker => stringReadSeeker
Diffstat (limited to 'common')
-rw-r--r-- | common/hugio/readers.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/hugio/readers.go b/common/hugio/readers.go index 9745d7841..25e327908 100644 --- a/common/hugio/readers.go +++ b/common/hugio/readers.go @@ -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 } |