[go-nuts] Re: go run requires internet connection?

2020-04-08 Thread Tanmay Das
No. OS X 10.15.3 On Thursday, April 9, 2020 at 11:40:51 AM UTC+6, Tamás Gulácsi wrote: > > Is it in Windows? Any antivirus may be involved? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

[go-nuts] Re: go run requires internet connection?

2020-04-08 Thread Tamás Gulácsi
Is it in Windows? Any antivirus may be involved? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread 洪嘉鴻
I see. I'll try it. Thank you very much! Max Ronny Bangsund於 2020年4月9日星期四 UTC+8下午12時40分41秒寫道: > > > > On Thursday, April 9, 2020 at 6:03:24 AM UTC+2, 洪嘉鴻 wrote: >> >> Excuse me. >> Did you mean this ? >> Thank you very much! >> > Yes, that's the one, Docs at

[go-nuts] Re: go run requires internet connection?

2020-04-08 Thread Tanmay Das
I also forgot to mention one thing. I was able to build the program using go build. Even the executable was there. It just didn't run until I connected to internet. On Wednesday, April 8, 2020 at 10:17:36 PM UTC+6, Tanmay Das wrote: > > Hey Gophers, > My very first post here. > > Today I faced

Re: [go-nuts] go run requires internet connection?

2020-04-08 Thread Tanmay Das
It's a simple hello world program that doesn't require any go-gettable package: package main import ( "fmt" ) func main() { fmt.Println("Hello World") } On Wednesday, April 8, 2020 at 10:30:31 PM UTC+6, Marvin Renich wrote: > > * Tanmay Das > [200408 12:17]: > > Hey Gophers, > > My very

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread Ronny Bangsund
On Thursday, April 9, 2020 at 6:03:24 AM UTC+2, 洪嘉鴻 wrote: > > Excuse me. > Did you mean this ? > Thank you very much! > Yes, that's the one, Docs at https://fyne.io and the cross-builder/packager at https://github.com/lucor/fyne-cross. -- You received this

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread 洪嘉鴻
Excuse me. Did you mean this ? Thank you very much! Max Ronny Bangsund於 2020年4月9日星期四 UTC+8上午11時14分35秒寫道: > > On Thursday, April 9, 2020 at 5:01:02 AM UTC+2, 洪嘉鴻 wrote: >> >> I want to run executables on both Windows and Linux. >> I don't think it is convenient to

Re: [go-nuts] Re: deadlock with a empty select{} in main goroutine.

2020-04-08 Thread Aravindhan K
Thanks Ian. Aravindhan K On Thu, Apr 9, 2020 at 3:21 AM Ian Lance Taylor wrote: > On Wed, Apr 8, 2020 at 10:19 AM Aravindhan K > wrote: > > > > If that is the case, in below code main go routine will a reach a > situation where no other go routines running to wake it up. > > But no deadlock

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread Ronny Bangsund
On Thursday, April 9, 2020 at 5:01:02 AM UTC+2, 洪嘉鴻 wrote: > > I want to run executables on both Windows and Linux. > I don't think it is convenient to maintain 2 codes with lxn/walk on > Windows and go-gtk3 on Linux. > Yeah, it gets messy quickly. It can be done, but then you're probably

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread 洪嘉鴻
I've found this that could run chrome. However, I'm not sure whether it could run chrome with mobile or not. Thanks for your replying! Max Kevin Chadwick於 2020年4月8日星期三 UTC+8下午6時43分06秒寫道: > > > >> lxn/walk use lxn/win,

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread 洪嘉鴻
I want to run executables on both Windows and Linux. I don't think it is convenient to maintain 2 codes with lxn/walk on Windows and go-gtk3 on Linux. Therefore, I'm trying to look for something that could work on both Windows and Linux. I'll try the breakdown you offered. Thank you very much!

Re: [go-nuts] Re: Issue with go and mongodb

2020-04-08 Thread Kurtis Rader
On Wed, Apr 8, 2020 at 7:41 PM Ali Hassan wrote: > how to resolve dns problem > I googled "cannot unmarshal DNS message" and the top result was https://github.com/golang/go/issues/37362 which seems relevant. It leads to

[go-nuts] Re: Issue with go and mongodb

2020-04-08 Thread Ali Hassan
how to resolve dns problem On Wednesday, April 8, 2020 at 7:56:42 PM UTC+5, Ali Hassan wrote: > > I want build connection with mongodb and go1.14 linux/amd > But it throw this > error parsing uri : lookup abc-hwykp.mongonet > on 127.0.0.53:53:

Re: [go-nuts] When to use runtime.GOOS vs. build flags/file suffixes?

2020-04-08 Thread Ian Lance Taylor
On Wed, Apr 8, 2020 at 4:13 PM Tom Payne wrote: > > Go allows OS-specific code to be selected two different ways, either using > the runtime.GOOS constant or with file-level build tags like "//+build linux" > or (equivalently) OS-specific source file suffixes like _linux. > > What's the

[go-nuts] When to use runtime.GOOS vs. build flags/file suffixes?

2020-04-08 Thread Tom Payne
Go allows OS-specific code to be selected two different ways, either using the runtime.GOOS constant or with file-level build tags like "//+build linux" or (equivalently) OS-specific source file suffixes like _linux. What's the recommended way to decide when to use which? As far as I can tell:

[go-nuts] Go 1.14.2 and Go 1.13.10 are released

2020-04-08 Thread Andrew Bonventre
Hello gophers, We have just released Go versions 1.14.2 and 1.13.10, minor point releases. View the release notes for more information: https://golang.org/doc/devel/release.html#go1.14.minor You can download binary and source distributions from the Go web site: https://golang.org/dl/

Re: [go-nuts] Re: deadlock with a empty select{} in main goroutine.

2020-04-08 Thread Ian Lance Taylor
On Wed, Apr 8, 2020 at 10:19 AM Aravindhan K wrote: > > If that is the case, in below code main go routine will a reach a situation > where no other go routines running to wake it up. > But no deadlock is not detected. > https://play.golang.org/p/z1NMYQAi0KY > May I assume deadlock - detection

Re: [go-nuts] Re: deadlock with a empty select{} in main goroutine.

2020-04-08 Thread Aravindhan K
Thanks all. If that is the case, in below code main go routine will a reach a situation where no other go routines running to wake it up. But no deadlock is not detected. https://play.golang.org/p/z1NMYQAi0KY May I assume deadlock - detection couldn't pick up this scenario? By using empty

Re: [go-nuts] Re: deadlock with a empty select{} in main goroutine.

2020-04-08 Thread 'Vikram Ingawale' via golang-nuts
Hi Manlio , The select statement will block until one of its cases is executed and in your program the select statement doesn't have any cas. so it will block forever and resulting in deadlock Thanks, Vikram Ingawale ph : +91 9766984458 On Wed, Apr 8, 2020 at 9:57 PM Manlio Perillo wrote: >

Re: [go-nuts] go run requires internet connection?

2020-04-08 Thread Harald Weidner
Hello, On Wed, Apr 08, 2020 at 06:00:19AM -0700, Tanmay Das wrote: > go run helloworld.go > > Strangely the code didn't run. In fact, the terminal prompt never exited. I > kept running the same command over and over again but no luck. You can run "go run -x helloworld.go" to see what the

Re: [go-nuts] go run requires internet connection?

2020-04-08 Thread Marvin Renich
* Tanmay Das [200408 12:17]: > Hey Gophers, > My very first post here. > > Today I faced an unexpected power outage and I wanted to tinker with Go a > little bit. I wrote a simple hello world program and ran > go run helloworld.go > > Strangely the code didn't run. In fact, the terminal

Re: [go-nuts] deadlock with a empty select{} in main goroutine.

2020-04-08 Thread Ian Lance Taylor
On Wed, Apr 8, 2020 at 9:17 AM wrote: > > I am not able to understand why this piece of go code deadlocks. > Doesn't empty select{} blocks forever, irrespective of other go routines to > wake that up. > > https://play.golang.org/p/zBWZPjTGYX7 > > Please help me to understand why code is

Re: [go-nuts] deadlock with a empty select{} in main goroutine.

2020-04-08 Thread burak serdar
On Wed, Apr 8, 2020 at 10:17 AM wrote: > > > Hi All, > > I am not able to understand why this piece of go code deadlocks. > Doesn't empty select{} blocks forever, irrespective of other go routines to > wake that up. > > https://play.golang.org/p/zBWZPjTGYX7 > > Please help me to understand why

[go-nuts] Re: deadlock with a empty select{} in main goroutine.

2020-04-08 Thread Manlio Perillo
On Wednesday, April 8, 2020 at 6:17:59 PM UTC+2, aravind...@gmail.com wrote: > > > Hi All, > > I am not able to understand why this piece of go code deadlocks. > Doesn't empty select{} blocks forever, irrespective of other go routines > to wake that up. > > https://play.golang.org/p/zBWZPjTGYX7

Re: [go-nuts] go run requires internet connection?

2020-04-08 Thread Ian Lance Taylor
On Wed, Apr 8, 2020 at 9:17 AM Tanmay Das wrote: > > Hey Gophers, > My very first post here. > > Today I faced an unexpected power outage and I wanted to tinker with Go a > little bit. I wrote a simple hello world program and ran > go run helloworld.go > > Strangely the code didn't run. In fact,

[go-nuts] deadlock with a empty select{} in main goroutine.

2020-04-08 Thread aravindhank1994
Hi All, I am not able to understand why this piece of go code deadlocks. Doesn't empty select{} blocks forever, irrespective of other go routines to wake that up. https://play.golang.org/p/zBWZPjTGYX7 Please help me to understand why code is detected as deadlock. And When I run this code

[go-nuts] go run requires internet connection?

2020-04-08 Thread Tanmay Das
Hey Gophers, My very first post here. Today I faced an unexpected power outage and I wanted to tinker with Go a little bit. I wrote a simple hello world program and ran go run helloworld.go Strangely the code didn't run. In fact, the terminal prompt never exited. I kept running the same

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread Philip Chapman
I do think that yes, you would have to set up some compile environment. Compiling for Linux from Windows could be possible through an open source/free VM such as VirtualBox or maybe through Window's linux compatibility layer (https://docs.microsoft.com/en-us/windows/wsl/about) though I am no

[go-nuts] Re: Issue with go and mongodb

2020-04-08 Thread Brian Candler
Looks like a problem with DNS. If I do "dig enigma-hwykp.mongodb.net" I see an empty response (NOERROR, no A records). If I do "dig abc-hwykp.mongodb.net" I see an empty response (NXDOMAIN, non-existent domain). Either way, you won't be able to use those names for making connections. So

[go-nuts] Issue with go and mongodb

2020-04-08 Thread Ali Hassan
I want build connection with mongodb and go1.14 linux/amd But it throw this error parsing uri : lookup abc-hwykp.mongonet on 127.0.0.53:53: cannot unmarshal DNS message *Mongoclient code :* [image: Capture.JPG] [image: Capture.JPG] Please help

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread Kevin Chadwick
On 2020-04-08 12:00, Philip Chapman wrote: > I personally like Wails.  Here is a breakdown of some of the options so that > you > can research which one fits your needs: Interesting, though I assume cross compilation is far from what Go offers and similar to fyne. IOW, it will be painful unless

Re: [go-nuts] Re: Pseudo version showing different in go1.12 and go1.13

2020-04-08 Thread Nitish Saboo
Thankyou Sean. Thanks, Nitish On Sun, 5 Apr 2020, 18:27 Sean Liao, wrote: > yes > > go1.12 and earlier used v0.0.0-x... for all cases > go1.13 and later uses different formats depending on the situation > > the change was mentioned in the release notes >

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread Philip Chapman
There are a few options, but it rather depends on what you need to do. The most similar to walk for linux would be go-gtk3. However, for cross-platform, probably the QT bindings. If you want to go the embedded html route, there are a few different options. I personally like Wails. Here is a

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread Kevin Chadwick
>> lxn/walk use lxn/win, which wraps windows api,so you can not use it under >> linux > You could also look into wsl. oops, ignore my last. I'm not sure there is a "Good" cross platform scenario for GO/html that matches GOs cross platform abilities, at the moment. Desktop sure but not

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread Kevin Chadwick
On 2020-04-08 10:43, 洪嘉鴻 wrote: > lxn/walk use lxn/win, which wraps windows api,so you can not use it under > linux You could also look into wsl. The key is to understand go.exe calls go from Windows with a wsl shell. Also copying wsl env variables to Windows execution. env GOOS=windows

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread 洪嘉鴻
I see. Thank you very much! Max sanye於 2020年4月8日星期三 UTC+8下午3時21分55秒寫道: > > > On 4/8/20 3:08 PM, 洪嘉鴻 wrote: > > Hello everyone: > I use golang with Win10. I want to build GUI executables which can work on > Linux. > I found this >

Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread sanye
On 4/8/20 3:08 PM, 洪嘉鴻 wrote: Hello everyone: I use golang with Win10. I want to build GUI executables which can work on Linux. I found this  and I could build GUI executable which can work on Windows. However, I couldn't

[go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread 洪嘉鴻
Hello everyone: I use golang with Win10. I want to build GUI executables which can work on Linux. I found this and I could build GUI executable which can work on Windows. However, I couldn't build GUI executable which can work