hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit a53f962312e273cea9fe460b40655350a82210f2
parent daffeec30d9d67017ec84064e15fd946b0b0cb0d
Author: Cameron Moore <moorereason@gmail.com>
Date:   Thu,  6 Sep 2018 13:23:56 -0500

deps: Fix most golint issues

deps/deps.go:79:6: exported type Listeners should have comment or be unexported
deps/deps.go:86:1: exported method Listeners.Add should have comment or be unexported
deps/deps.go:92:1: exported method Listeners.Notify should have comment or be unexported

Diffstat:
Mdeps/deps.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/deps/deps.go b/deps/deps.go
@@ -76,6 +76,7 @@ type Deps struct {
 	BuildStartListeners *Listeners
 }
 
+// Listeners represents an event listener.
 type Listeners struct {
 	sync.Mutex
 
@@ -83,12 +84,14 @@ type Listeners struct {
 	listeners []func()
 }
 
+// Add adds a function to a Listeners instance.
 func (b *Listeners) Add(f func()) {
 	b.Lock()
 	defer b.Unlock()
 	b.listeners = append(b.listeners, f)
 }
 
+// Notify executes all listener functions.
 func (b *Listeners) Notify() {
 	b.Lock()
 	defer b.Unlock()