[go-nuts] Best method for getting input from user?

2018-05-28 Thread atighe
Hello again, I was wondering in y'all's opinion the best method for getting information from the user. I am gonna create a licensing system and need to be able to let the user add credentials to the specified local json map database, as well as remove credentials. They also must be able to

[go-nuts] Re: I am confused.

2018-05-28 Thread prades . marq
A 9 yo shouldn't be online talking to adult strangers, it's irresponsible for whoever is in charge of that group to let that thread open, let alone let a 9 y.o. in this group when the internet is full of child predators. Le lundi 28 mai 2018 02:31:42 UTC+2, John a écrit : > > Okay I will

Re: [go-nuts] Automatically re-run the golang file when the file is running, then the error

2018-05-28 Thread Seven Dang
ok Thank you!... I will try now... On Monday, May 28, 2018 at 6:20:58 PM UTC+7, Rohit Jain wrote: > > You have to use defer and recover in your `main` function if you are not > specifically handling the individual error > > > ``` > > > // recover must always be used in defer call >

Re: [go-nuts] Cross platform native(no dependencies) GUI options.

2018-05-28 Thread atighe
I just do not like the slow compile speeds and the inability to cross compile easily. It just sucks to have a language with such power and to have a libraries kill it. Thanks for the comment though! -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: Cross platform native(no dependencies) GUI options.

2018-05-28 Thread Robert Johnstone
I'm not certain that blocking CGO because of compile speed should be a primary concern. The package that implements the interface to the underlying system should be built once and installed. After that, the impact on build speed should be no different than importing any other package.

Re: [go-nuts] Re: Counting semaphore vs Workerpool

2018-05-28 Thread Jesper Louis Andersen
There is also a hybrid model: Model A: for each work item, create a goroutine. This is easy to program, but uses additional resources for the goroutines. Model B: keep a worker pool and feed a channel. This bounds the goroutine count and requires more code to pull off and make correct. I'm going

Re: [go-nuts] Automatically re-run the golang file when the file is running, then the error

2018-05-28 Thread Rohit Jain
You have to use defer and recover in your `main` function if you are not specifically handling the individual error ``` // recover must always be used in defer call // because when panic occurs , all defer functions are called before function returns //

Re: [go-nuts] Re: I am confused.

2018-05-28 Thread Wojciech S. Czarnecki
On Sun, 27 May 2018 17:47:36 -0700 (PDT) alex.rou...@gmail.com wrote: > Then you shouldn't even have a google account/gmail and shouldn't be > posting on google groups. OP: At least unless your Mom is sitting beside you and you are just assisting her in her use of account

Re: [go-nuts] Re: I am confused.

2018-05-28 Thread Wojciech S. Czarnecki
On Sun, 27 May 2018 17:31:42 -0700 (PDT) John wrote: > Okay I will confess my age: 9 .. So your age is a major obstacle for many adults willing to help you set up in programming field. In many countries an adult speaking to a kid over the net can be in legal trouble.

[go-nuts] Automatically re-run the golang file when the file is running, then the error

2018-05-28 Thread Seven Dang
Help me..! ex: trap1.go trap2.go main.go -> run file : go run trap1.go , go run trap2.go When running, the internet connection is down or the data connection is down. I want the files that are corrupt to automatically run again. The best way to write a command for main.go is to run the