使用iris+bootstrap報錯
//?SetupWebsockets?prepares?the?websocket?server. func?(b?*Bootstrapper)?SetupWebsockets(endpoint?string,?onConnection?websocket.ConnectionFunc)?{ ???ws?:=?websocket.New(websocket.Config{}) ???ws.OnConnection(onConnection) ???b.Get(endpoint,?ws.Handler()) ???b.Any("/iris-ws.js",?func(ctx?iris.Context)?{ ??????ctx.Write(websocket.ClientSource) ???}) }
bootstrapper.go這個文件 71行 報錯 找不到
websocket?ConnectionFunc?這個類型?我是初學者?希望老師解答一下?謝謝
2019-08-20
先把這個注釋掉 項目中并沒有用到這個樣