2 ms·
Ah, thanks. You might also need to go get code.google.com/p/go.net/websocket if you haven't already.
by minikomi 13y ago
Ah, thanks. You might also need to go get code.google.com/p/go.net/websocket if you haven't already.
- mseepgood 13y agogo get fetches it automatically.
- shakesbeard 13y agoYou could use the following to get the path to your assets. import ( "go/build" "path/filepath" ) pkgInfo, err := build.Import("github.com/minikomi/pipesock", "", 0) if err != nil { panic(err) } webDirPath := filepath.Join(pkgInfo.Dir, "default")
- minikomi 13y agoThat's a much cleaner idea, thanks. I'll investigate it. edit: Thanks, I went with this.
- deleted 13y ago[deleted]