Echo: Is it possible to e.Start on unix socket?

Created on 26 Jan 2017  路  4Comments  路  Source: labstack/echo

question

Most helpful comment

l, err := net.Listen("unix", "/tmp/echo.sock")
if err != nil {
    e.Logger.Fatal(err)
}
e.Listener = l
e.Logger.Fatal(e.Start(""))

All 4 comments

l, err := net.Listen("unix", "/tmp/echo.sock")
if err != nil {
    e.Logger.Fatal(err)
}
e.Listener = l
e.Logger.Fatal(e.Start(""))

Thank you, it would be useful to be mentioned in the Cookbook as I feel.

sexy!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

linux-support picture linux-support  路  3Comments

mmindenhall picture mmindenhall  路  4Comments

wangxianzhuo picture wangxianzhuo  路  4Comments

kyokomi picture kyokomi  路  3Comments

arun0009 picture arun0009  路  3Comments