Permalink
Switch branches/tags
Find file Copy path
aca0bec Jul 14, 2017
1 contributor

Users who have contributed to this file

20 lines (14 sloc) 368 Bytes
package main
import (
"github.com/kataras/iris"
"github.com/kataras/iris/core/netutil"
)
func main() {
app := iris.New()
l, err := netutil.UNIX("/tmpl/srv.sock", 0666) // see its code to see how you can manually create a new file listener, it's easy.
if err != nil {
panic(err)
}
app.Run(iris.Listener(l))
}
// Look "custom-listener/unix-reuseport" too.