0

Iam trying to build apprtc signaling server(collider). Based on tutorial, we only need to enter

go get collidermain

after setting $GOPATH. But I got error like this

 > go get collider/collidermain
src/collider/collidermain/main.go:9:2: no buildable Go source files in /home/abdulmanaf/poc/apprtcNewVersion/apprtc/src/collider

Then I had tried to build collider folder. But I got error like this

> go get collider/collider
# golang.org/x/net/websocket
src/golang.org/x/net/websocket/dial.go:18:19: error: reference to undefined identifier ‘tls.DialWithDialer’
   conn, err = tls.DialWithDialer(dialer, "tcp", parseAuthority(config.Location), config.TlsConfig)

What is the actual issue related to this? I need to build and deploy collider application

Abdul Manaf
  • 4,933
  • 8
  • 51
  • 95
  • What is "collider"? Please show exactly what steps you're following. `collider/collider` isn't a go get-able url, so you may have some other incorrect import paths. – JimB Dec 04 '17 at 14:15

1 Answers1

1

Sounds like you're using a really old version of go. Could you run go version?

tls.DialWithDialer was added in go 1.3 in 2014.

Marc
  • 19,394
  • 6
  • 47
  • 51
  • Sounds like default ubuntu that ships with go 1.2 indeed :( – favoretti Dec 04 '17 at 16:04
  • this is due to, i have installed go from official website . but go already available in my ubuntu 14.04(using apt-get). I had just removed old version, it will be working fine. thanks for all your supports. – Abdul Manaf Dec 05 '17 at 05:40