go-proxy-example icon indicating copy to clipboard operation
go-proxy-example copied to clipboard

main.go:6:2: cannot find package "gopkg.in/BlueDragonX/go-log.v0" in any of:

Open sanderjo opened this issue 9 years ago • 2 comments

Hi, this is my experience and solution:

sander@netbook:~/git/go-proxy-example$ go build
main.go:6:2: cannot find package "gopkg.in/BlueDragonX/go-log.v0" in any of:
    /usr/lib/go/src/pkg/gopkg.in/BlueDragonX/go-log.v0 (from $GOROOT)
    ($GOPATH not set)

This did not work:

sander@netbook:~/git/go-proxy-example$ go get gopkg.in/BlueDragonX/go-log.v0
package gopkg.in/BlueDragonX/go-log.v0: unrecognized import path "gopkg.in/BlueDragonX/go-log.v0"

So in main.go I changed "gopkg.in/BlueDragonX/go-log.v0" to "github.com/BlueDragonX/go-log"

and then:

sander@netbook:~/git/go-proxy-example$ go get github.com/BlueDragonX/go-log
sander@netbook:~/git/go-proxy-example$ go build
sander@netbook:~/git/go-proxy-example$ ./go-proxy-example -listen=0.0.0.0:8888 -backend=newszilla6.xs4all.nl:119
2016/03/24 22:27:28 go-proxy-example: accepted: 192.168.1.246:36864

And that worked:

sander@flappie:~$ telnet netbook.local.  8888
Trying 192.168.1.197...
Connected to netbook.local..
Escape character is '^]'.
201 newszilla.xs4all.nl NNRP Service Ready (dreader36) (no posting)
HELP
100 Legal commands
  article [MessageID|Number]
  body [MessageID|Number]
  date 
  head [MessageID|Number]
  help 
  ihave 
  mode reader|stream
  slave 
  quit 
  group newsgroup
  last 
  next 
  list [active|active.times|newsgroups|extensions|distributions|distrib.pats|moderators|overview.fmt|subscriptions]
  listgroup newsgroup
  newgroups yymmdd hhmmss ["GMT"] [<distributions>]
  post 
  stat [MessageID|Number]
  xgtitle [group_pattern]
  xhdr header [range|MessageID]
  hdr header [range|MessageID]
  over [range]
  xover [range]
  xzver [range]
  xpat header range|MessageID pat
  xpath MessageID
  xnumbering rfc3977|rfc977|window
  authinfo user Name|pass Password
.
QUIT
205 Transferred 779 bytes in 0 articles, 0 groups.  Disconnecting.

HTH

sanderjo avatar Mar 24 '16 21:03 sanderjo

If you fixed it submit a PR.

rynbrd avatar Mar 24 '16 21:03 rynbrd

OK, I'll do

sanderjo avatar Mar 24 '16 21:03 sanderjo