mirror of
https://github.com/kataras/iris.git
synced 2025-03-13 21:36:28 +01:00
grammar and readme additions 📕
Former-commit-id: f63083ed6924b4ed13ea9585501b0c032c1194c1
This commit is contained in:
parent
345e7280a1
commit
5855568794
|
@ -28,10 +28,8 @@ The API didn't change much except these:
|
|||
- the new implementation does not recognise `Fatal` and `Panic` because, actually, iris never panics
|
||||
- the old `app.Logger().Out = io.Writer` should be written as `app.Logger().SetOutput(io.Writer)`
|
||||
|
||||
The new implementation, [golog](https://github.com/kataras/golog) is more featured
|
||||
and it completes more use cases than the before external implementation.
|
||||
|
||||
At general you have to know that the low-level relative fields and functions are actually inside `app.Logger().Printer` object, i.e: `app.Logger().Printer.Output` to get the `io.Writer` or `app.Logger().Printer.AddOuput/SetOutput` to set or add more output(`io.Writer`) targets.
|
||||
The new implementation, [golog](https://github.com/kataras/golog) is featured, **[three times faster than logrus](https://github.com/kataras/golog/tree/master/_benchmarks)**
|
||||
and it completes every common usage.
|
||||
|
||||
### Integration
|
||||
|
||||
|
|
|
@ -2,9 +2,12 @@
|
|||
|
||||
Iris is a fast, simple and efficient micro web framework for Go. It provides a beautifully expressive and easy to use foundation for your next website, API, or distributed app.
|
||||
|
||||
[](http://iris-go.com/graph)
|
||||
[](https://travis-ci.org/kataras/iris)
|
||||
[](http://goreportcard.com/report/kataras/iris)
|
||||
[](https://godoc.org/github.com/kataras/iris)
|
||||
[](https://github.com/kataras/iris/issues?q=is%3Aissue+is%3Aclosed)
|
||||
[](https://github.com/kataras/iris/issues?q=is%3Aissue+is%3Aclosed)
|
||||
[](http://support.iris-go.com)
|
||||
[](https://github.com/kataras/iris/tree/master/_examples)
|
||||
[](https://kataras.rocket.chat/channel/iris)
|
||||
|
|
|
@ -222,9 +222,6 @@ func (s *Server) handleConnection(ctx context.Context, websocketConn UnderlineCo
|
|||
|
||||
// OnConnection is the main event you, as developer, will work with each of the websocket connections.
|
||||
func (s *Server) OnConnection(cb ConnectionFunc) {
|
||||
if s.handler == nil {
|
||||
|
||||
}
|
||||
s.onConnectionListeners = append(s.onConnectionListeners, cb)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user