Skip to content

Commit

Permalink
Merge pull request #30 from volker-fr/master
Browse files Browse the repository at this point in the history
[refactor] Make Author example and test go vet compliant
  • Loading branch information
elithrar committed Feb 7, 2016
2 parents fa5ce8d + e914366 commit 441264d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
Title: "jmoiron.net blog",
Link: &feeds.Link{Href: "http://jmoiron.net/blog"},
Description: "discussion about tech, footie, photos",
Author: &feeds.Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Author: &feeds.Author{Name: "Jason Moiron", Email: "jmoiron@jmoiron.net"},
Created: now,
}

Expand All @@ -37,7 +37,7 @@ func main() {
Title: "Limiting Concurrency in Go",
Link: &feeds.Link{Href: "http://jmoiron.net/blog/limiting-concurrency-in-go/"},
Description: "A discussion on controlled parallelism in golang",
Author: &feeds.Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Author: &feeds.Author{Name: "Jason Moiron", Email: "jmoiron@jmoiron.net"},
Created: now,
},
&feeds.Item{
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Create a Feed and some Items in that feed using the generic interfaces:
Title: "jmoiron.net blog",
Link: &Link{Href: "http://jmoiron.net/blog"},
Description: "discussion about tech, footie, photos",
Author: &Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Author: &Author{Name: "Jason Moiron", Email: "jmoiron@jmoiron.net"},
Created: now,
Copyright: "This work is copyright © Benjamin Button",
}
Expand All @@ -32,7 +32,7 @@ Create a Feed and some Items in that feed using the generic interfaces:
Title: "Limiting Concurrency in Go",
Link: &Link{Href: "http://jmoiron.net/blog/limiting-concurrency-in-go/"},
Description: "A discussion on controlled parallelism in golang",
Author: &Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Author: &Author{Name: "Jason Moiron", Email: "jmoiron@jmoiron.net"},
Created: now,
},
&Item{
Expand Down
4 changes: 2 additions & 2 deletions feed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func TestFeed(t *testing.T) {
Title: "jmoiron.net blog",
Link: &Link{Href: "http://jmoiron.net/blog"},
Description: "discussion about tech, footie, photos",
Author: &Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Author: &Author{Name: "Jason Moiron", Email: "jmoiron@jmoiron.net"},
Created: now,
Copyright: "This work is copyright © Benjamin Button",
}
Expand All @@ -123,7 +123,7 @@ func TestFeed(t *testing.T) {
Title: "Limiting Concurrency in Go",
Link: &Link{Href: "http://jmoiron.net/blog/limiting-concurrency-in-go/"},
Description: "A discussion on controlled parallelism in golang",
Author: &Author{"Jason Moiron", "jmoiron@jmoiron.net"},
Author: &Author{Name: "Jason Moiron", Email: "jmoiron@jmoiron.net"},
Created: now,
},
{
Expand Down

0 comments on commit 441264d

Please sign in to comment.