Re: [go-nuts] How to invoke child 'go' process in playground?

2019-10-11 Thread Kurtis Rader
The Go playground does not allow running arbitrary external commands. No doubt primarily for security reasons. But also because the playground environment is not a complete virtualized OS. For example, try to execute exec.Command("/bin/ls", "-la") You'll get a "not implemented on nacl" error.

[go-nuts] How to invoke child 'go' process in playground?

2019-10-11 Thread Xiangdong JI
Hi, Given a command execution like "cmd := exec.CommandContext(ctx, "go", "run", file)" playground reports the following error: child error: exec: "go": executable file not found in $PATH Could it be solved by specifying a full path for 'go', which path shall I use? Thanks a lot.

Re: [go-nuts] geocrypt package

2019-10-11 Thread Robert Engels
Cool stuff! > On Oct 11, 2019, at 4:22 PM, Dan Kortschak wrote: > > Over 10 years ago Gustavo Niemeyer invented the geohash geographic > hashing system https://en.wikipedia.org/wiki/Geohash for clearly and > concisely representing geographic locations at arbitrary precision. > > Now, here is

[go-nuts] Re: Is there anything wrong with proxy.glang.org?

2019-10-11 Thread ankushc via golang-nuts
Are you using Go 1.13? Version validation is done as part of Go 1.13 ( https://golang.org/doc/go1.13#modules). In Go 1.12, this would have succeeded. However, if a goproxy has this version, then a go get will be successful. Example: https://search.gocenter.io/github.com~2Fbilibili~2Fkratos/info

Re: [go-nuts] [ANN] go-resty v2.1.0 released - Simple HTTP and REST client library

2019-10-11 Thread Dimas Prawira
Thanks, I'll check it out. Cheers Dimas On Sat, Oct 12, 2019 at 4:32 AM Sam Whited wrote: > On Fri, Oct 11, 2019, at 21:24, Dimas Prawira wrote: > > Just test using got get > > You appear to be using an old version of Go that doesn't support modules > or have it turned off or set to auto using

Re: [go-nuts] [ANN] go-resty v2.1.0 released - Simple HTTP and REST client library

2019-10-11 Thread Sam Whited
On Fri, Oct 11, 2019, at 21:24, Dimas Prawira wrote: > Just test using got get You appear to be using an old version of Go that doesn't support modules or have it turned off or set to auto using the GO111MODULE environment variable. If you upgrade to Go 1.13 and make sure GO111MODULE isn't set,

[go-nuts] geocrypt package

2019-10-11 Thread Dan Kortschak
Over 10 years ago Gustavo Niemeyer invented the geohash geographic hashing system https://en.wikipedia.org/wiki/Geohash for clearly and concisely representing geographic locations at arbitrary precision. Now, here is geocrypt, a package that returns or checks a cryptographic hash of a

[go-nuts] Go 1.13.2 and Go 1.12.11 pre-announcement

2019-10-11 Thread Katie Hockman
Hello gophers, We plan to issue Go 1.13.2 and Go 1.12.11 on Wednesday, October 16. These are minor releases to fix security issues. Following our policy at https://golang.org/security, this is the pre-announcement of those releases. Cheers, Katie on behalf of the Go team -- You received this

Re: [go-nuts] [ANN] go-resty v2.1.0 released - Simple HTTP and REST client library

2019-10-11 Thread Sam Whited
On Fri, Oct 11, 2019, at 20:55, Dimas Prawira wrote: > Stable Version : github.com/go-resty/resty/v2 > > got 404 (not found) That is a Go import line with a module major version suffix, not a GitHub URL. The fact that they look the same instead of using some other syntax is extremely annoying,

[go-nuts] Golang Network Proxy programming.

2019-10-11 Thread mikeepps756
Hello, As a new golang user who wants to program go proxies,vpns to bypass censorship. What areas should I focus on while learning go. Should I stick to the net package or do I have to learn the whole standard lib of the language. thanks. -- You received this message because you are subscribed

AW: [go-nuts] Not able to connect with mysql database

2019-10-11 Thread Lutz Horn
Does the user 'root' have the permission to access the database on the MySQL server running on 'localhost'? Note that this is not a Go problem but a MySQL problem. You should try to access the database using the mysql command line client berfore using it in an application. Lutz

[go-nuts] Not able to connect with mysql database

2019-10-11 Thread Sarchcheelanbca Bala
Hi Team am not able to connect my go program with mysql. Getting the below error. I have attached main.go file for your reference 2019/10/11 17:11:42 http: panic serving [::1]:59577: Error 1045: Access denied for user 'root'@'localhost' (using password: YES) goroutine 74 [running]: