style: no "this" or "self" as receiver
This commit is contained in:
@@ -14,12 +14,12 @@ type Source interface {
|
||||
// A source coming from a string.
|
||||
type StringSource struct{ data string }
|
||||
|
||||
func (this StringSource) Pull() (string, error) { return this.data, nil }
|
||||
func (s StringSource) Pull() (string, error) { return s.data, nil }
|
||||
|
||||
// A source coming from standard input.
|
||||
type StdinSource struct{}
|
||||
|
||||
func (this StdinSource) Pull() (string, error) {
|
||||
func (s StdinSource) Pull() (string, error) {
|
||||
data, err := io.ReadAll(os.Stdin)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
||||
Reference in New Issue
Block a user