fix golint errors

This commit is contained in:
matcornic
2017-03-28 18:41:38 +02:00
parent fde49fefcf
commit fc04e7ea13
6 changed files with 14 additions and 12 deletions

View File

@ -6,7 +6,7 @@ import (
"io/ioutil"
)
type Example interface {
type example interface {
Email() hermes.Email
Name() string
}
@ -20,7 +20,7 @@ func main() {
},
}
examples := []Example{
examples := []example{
new(Welcome),
new(Reset),
new(Receipt),

View File

@ -4,14 +4,14 @@ import (
"github.com/matcornic/hermes"
)
type Receipt struct {
type receipt struct {
}
func (r *Receipt) Name() string {
func (r *receipt) Name() string {
return "receipt"
}
func (r *Receipt) Email() hermes.Email {
func (r *receipt) Email() hermes.Email {
return hermes.Email{
Body: hermes.Body{
Name: "Jon Snow",

View File

@ -4,14 +4,14 @@ import (
"github.com/matcornic/hermes"
)
type Reset struct {
type reset struct {
}
func (r *Reset) Name() string {
func (r *reset) Name() string {
return "reset"
}
func (r *Reset) Email() hermes.Email {
func (r *reset) Email() hermes.Email {
return hermes.Email{
Body: hermes.Body{
Name: "Jon Snow",

View File

@ -4,14 +4,14 @@ import (
"github.com/matcornic/hermes"
)
type Welcome struct {
type welcome struct {
}
func (w *Welcome) Name() string {
func (w *welcome) Name() string {
return "welcome"
}
func (w *Welcome) Email() hermes.Email {
func (w *welcome) Email() hermes.Email {
return hermes.Email{
Body: hermes.Body{
Name: "Jon Snow",