Re: [go-nuts] Re: String to uint32

2021-05-22 Thread peterGo
On Saturday, May 22, 2021 at 6:36:30 PM UTC-4 Ian Lance Taylor wrote: > On Sat, May 22, 2021 at 3:26 PM Mosleh Saeidi > wrote: > > > > so what is the solution, I have a variable type is uint32, and now want > to convert a string to that variable ? > > To convert a string to an integer see

[go-nuts] Re: String to uint32

2021-05-22 Thread peterGo
On Saturday, May 22, 2021 at 6:26:29 PM UTC-4 Mosleh Saeidi wrote: > so what is the solution, I have a variable type is uint32, and now want to > convert a string to that variable ? > https://play.golang.org/p/429NO4g-yte Peter -- You received this message because you are subscribed to

Re: [go-nuts] Re: String to uint32

2021-05-22 Thread Ian Lance Taylor
On Sat, May 22, 2021 at 3:26 PM Mosleh Saeidi wrote: > > so what is the solution, I have a variable type is uint32, and now want to > convert a string to that variable ? Note that you are replying to a message written in 2010. To convert a string to an integer see

Re: [go-nuts] How to restore ignored signals

2021-05-22 Thread Ian Lance Taylor
On Sat, May 22, 2021 at 5:53 AM Manlio Perillo wrote: > > I'm curious to know if sigprocmask is safe/convenient to use in a Go program. It's possible, of course, but it's not particularly convenient. sigprocmask isn't a good fit for multi-threaded programs, and most Go programs are

[go-nuts] Re: String to uint32

2021-05-22 Thread Mosleh Saeidi
so what is the solution, I have a variable type is uint32, and now want to convert a string to that variable ? On Thursday, April 8, 2010 at 4:23:21 PM UTC+3 peterGo wrote: > Joan, > > Read the replies to your messages form yesterday. You would see: > > if bar, err := strconv.Atoui(t[1]); err

Re: [go-nuts] How to restore ignored signals

2021-05-22 Thread Manlio Perillo
On Friday, May 21, 2021 at 10:44:01 PM UTC+2 Ian Lance Taylor wrote: > On Fri, May 21, 2021 at 1:37 PM Manlio Perillo > wrote: > > > > [...] > > > > In https://play.golang.org/p/c88iu09mOgO, the SIGINT signal (via > Ctrl-C) is ignored after the call to `signal.Ignore`. > > However SIGINT

Re: [go-nuts] How to restore ignored signals

2021-05-22 Thread Manlio Perillo
On Friday, May 21, 2021 at 11:43:24 PM UTC+2 Ian Lance Taylor wrote: > On Fri, May 21, 2021 at 1:47 PM Brian Candler wrote: > > > > If I understand rightly, it boils down to this: > > https://play.golang.org/p/vYlTzluIuBL > > Thanks. That's clearly a bug. The sig.ignored mask is not being >

[go-nuts] Go's compatiblity with non-module repositories

2021-05-22 Thread Peter Bočan
Hey guys, I am reading upon the module's compatibility with non-module repositories https://golang.org/ref/mod#non-module-compat and few things are unclear to me: It says that Go will synthesize a go.mod file which only contains a module directive and the module that depends on such a