fix golint errors
This commit is contained in:
		@ -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),
 | 
			
		||||
 | 
			
		||||
@ -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",
 | 
			
		||||
 | 
			
		||||
@ -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",
 | 
			
		||||
 | 
			
		||||
@ -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",
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user