mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Update to v4.4.0 Implementation of https://github.com/kataras/iris/issues/438
Read HISTORY.md
This commit is contained in:
@@ -56,6 +56,7 @@ func (t *testPluginEx) PreClose(*Framework) {
|
||||
|
||||
func ExamplePlugins_Add() {
|
||||
initDefault()
|
||||
Default.Set(OptionDisableBanner(true))
|
||||
Plugins.Add(PreListenFunc(func(*Framework) {
|
||||
fmt.Println("PreListen Func")
|
||||
}))
|
||||
@@ -72,9 +73,11 @@ func ExamplePlugins_Add() {
|
||||
Plugins.Add(myplugin)
|
||||
desc := Plugins.GetDescription(myplugin)
|
||||
fmt.Println(desc)
|
||||
go Listen(":8080")
|
||||
|
||||
ListenVirtual()
|
||||
Close()
|
||||
if ok := <-Available; ok {
|
||||
Close()
|
||||
}
|
||||
|
||||
// Output:
|
||||
// GetName Struct
|
||||
|
||||
Reference in New Issue
Block a user