rgamba / evtwebsocket

Dead easy event based websockets
52 stars 16 forks source link

Example fails to compile #1

Closed sgsullivan closed 8 years ago

sgsullivan commented 8 years ago

Using go version 1.6 (at least) the examples here do not seem to compile. For example, when I try to run examples/client.go , I just get this:

cannot use func literal (type func("golang.org/x/net/websocket".Conn)) as type func("github.com/rgamba/evtwebsocket/vendor/golang.org/x/net/websocket".Conn) in field value

rgamba commented 8 years ago

Solved. Thanks to @jeffallen

derrickb commented 8 years ago

This isn't fixed for me... I just pulled this down today and none of the examples work. I'm getting the same error as @sgsullivan

I tried copying/pasting the README example and using the client.go example file.

Edit: Deleting the vendor folder fixes it.

jeffallen commented 8 years ago

I agree that the vendor folder should go. Libraries shoud not vendor dependencies, only things in package main.

rgamba commented 8 years ago

Agreed. Vendor folder was deleted.