From 2ce592c234f82345e885fcacda2c9aff2366ba8f Mon Sep 17 00:00:00 2001 From: Tatsushi Demachi Date: Sat, 11 Oct 2014 15:35:11 +0900 Subject: [PATCH] Fix error message to pass http://go-lint.appspot.com/ checks --- fastping.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastping.go b/fastping.go index 0a6d903..7e14d89 100644 --- a/fastping.go +++ b/fastping.go @@ -188,7 +188,7 @@ func (p *Pinger) AddHandler(event string, handler interface{}) error { p.mu.Unlock() return nil } - return errors.New("Receive event handler should be `func(*net.IPAddr, time.Duration)`") + return errors.New("receive event handler should be `func(*net.IPAddr, time.Duration)`") case "idle": if hdl, ok := handler.(func()); ok { p.mu.Lock() @@ -196,7 +196,7 @@ func (p *Pinger) AddHandler(event string, handler interface{}) error { p.mu.Unlock() return nil } - return errors.New("Idle event handler should be `func()`") + return errors.New("idle event handler should be `func()`") } return errors.New("No such event: " + event) }