1
0
mirror of https://github.com/kataras/iris.git synced 2026-03-08 01:16:30 +00:00

Catch os.Interrupt signal with iris.PostInterrupt example added in comments.

https://github.com/iris-contrib/examples/tree/master/os_interrupt
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-01-11 18:01:29 +02:00
parent 5ad7c6e01f
commit 23f9ad13a1
3 changed files with 16 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ iris.Plugins.PostInterrupt(func(s *Framework){
```
- Example: https://github.com/iris-contrib/examples/tree/master/os_interrupt
## 6.0.7 -> 6.0.8
- Add `iris.UseTemplateFunc(functionName string, function interface{})`. You could always set custom template funcs by using each of [template engine's](https://github.com/kataras/go-template) configuration but this function will help newcomers to start creating their custom template funcs.