Add missing comments

This commit is contained in:
pancho horrillo
2019-11-20 07:14:00 +01:00
parent d81ef278da
commit 7ea43048bc
5 changed files with 10 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ import (
"github.com/gorilla/mux"
)
// Constants for error reasons
const (
ResourceItemNotFound = "Resource Item Not Found"
NonIntegerValue = "Non Integer Value"
+2
View File
@@ -27,8 +27,10 @@ type safeHandlerMap struct {
m *sync.RWMutex
}
// Singleton containing all current handlers as a safeHandlerMap
var Handlers = New()
// New creates a read-to-use safeHandlerMap
func New() safeHandlerMap {
return safeHandlerMap{
hs: make(map[string]*model.Handler),