1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

move sessions and websocket examples, gofmt, fix misspells and experimental optimizations 🍐

Former-commit-id: cae4f94bbd404d26ab13dade02b52f81feaddf24
This commit is contained in:
hiveminded
2017-07-22 22:57:20 +03:00
parent 90b8c1af44
commit 9a0b18acbf
36 changed files with 155 additions and 97 deletions

View File

@@ -105,7 +105,7 @@ func (su *Supervisor) newListener() (net.Listener, error) {
return l, nil
}
// RegisterOnError registers a function to call when errors occured by the underline http server.
// RegisterOnError registers a function to call when errors occurred by the underline http server.
func (su *Supervisor) RegisterOnError(cb func(error)) {
su.mu.Lock()
su.onErr = append(su.onErr, cb)