Re: [go-nuts] why does go test with GO111MODULE=on add self requirement

2019-02-19 Thread Dan Kortschak
Ignore this - pebcak. On Wed, 2019-02-20 at 15:56 +1030, Dan Kortschak wrote: > I am starting to introduce modules to some packages and when I ran > tests a require statement was added to go.mod that is the module > itself. Why would this be a good idea? > -- You received this message because y

[go-nuts] why does go test with GO111MODULE=on add self requirement

2019-02-19 Thread Dan Kortschak
I am starting to introduce modules to some packages and when I ran tests a require statement was added to go.mod that is the module itself. Why would this be a good idea? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gr

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Dan Kortschak
Saying something other than "something else" requires that the all of the other possible things that are not currently listed there must be listed. The possible outcomes listed are reasonably likely, but other non-"make demons fly out of your nose" type outcomes are also possible, like "program han

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Ian Lance Taylor
On Tue, Feb 19, 2019 at 1:56 PM Manlio Perillo wrote: > > The Go specification do use both implementation-dependent and > implementation-defined, and I assumed it was a typo. > But what is the difference between implementation-dependent and > implementation-defined? I don't think they are used

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Manlio Perillo
On Tuesday, February 19, 2019 at 9:36:10 PM UTC+1, Ian Lance Taylor wrote: > > On Tue, Feb 19, 2019 at 11:06 AM Manlio Perillo > > wrote: > > [...] > From http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf > > (hoping it is legal to copy and paste the text): > > > > undefined behavior

Re: [go-nuts] How to kill all open TCP connections?

2019-02-19 Thread Kurtis Rader
On Tue, Feb 19, 2019 at 1:22 PM wrote: > I've seen that thread before. But the thread doesn't seem to offer any > solution that applies to my case besides tcpdrop (which again my code > reviewer wants to avoid). I posted here in the hopes that Go has an easy > way to simply kill all these connect

Re: [go-nuts] How to kill all open TCP connections?

2019-02-19 Thread rlwestlund
I've seen that thread before. But the thread doesn't seem to offer any solution that applies to my case besides tcpdrop (which again my code reviewer wants to avoid). I posted here in the hopes that Go has an easy way to simply kill all these connections. On Tuesday, February 19, 2019 at 2:03:

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Ian Lance Taylor
On Tue, Feb 19, 2019 at 11:06 AM Manlio Perillo wrote: > > On Tuesday, February 19, 2019 at 7:26:22 PM UTC+1, Ian Lance Taylor wrote: >> >> On Tue, Feb 19, 2019 at 9:34 AM Manlio Perillo wrote: >> > >> > The Go language specification never mentions undefined behavior, however >> > Ian Lance Taylo

Re: [go-nuts] Issue using json with array

2019-02-19 Thread Juan Mamani
Thanks Tomás! now reading info about Marshal El sábado, 2 de febrero de 2019, 20:24:36 (UTC-3), Tomás González Dowling escribió: > > Not sure if that was a question, Juan. But you can use Marshal method in > the encoding/json package to avoid using make. There are some examples in > th

[go-nuts] Re: Issue using json with array

2019-02-19 Thread Juan Mamani
Thanks Victor! for now reading about.. El lunes, 4 de febrero de 2019, 10:56:53 (UTC-3), Victor Giordano escribió: > > Implemeting the Stringer interface could solve your problem > > El martes, 18 de diciembre de 2018, 22:40:45 (UTC-3), Juan Mamani escribió: >> >> I'm not an

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Manlio Perillo
On Tuesday, February 19, 2019 at 7:26:22 PM UTC+1, Ian Lance Taylor wrote: > > On Tue, Feb 19, 2019 at 9:34 AM Manlio Perillo > wrote: > > > > The Go language specification never mentions undefined behavior, however > > Ian Lance Taylor wrote, in [1], that: > > > > - if your program has a ra

[go-nuts] Delve 1.2.0 released!

2019-02-19 Thread Derek Parker
Hello all, Just wanted to announce the release of Delve 1.2.0! The major update here is Go 1.12 support, along with a bunch of new improvements and fixes. Read about the full release here: https://github.com/go-delve/delve/blob/master/CHANGELOG.md#120-2019-02-19. -- You received this message

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Manlio Perillo
On Tuesday, February 19, 2019 at 7:26:22 PM UTC+1, Ian Lance Taylor wrote: > > On Tue, Feb 19, 2019 at 9:34 AM Manlio Perillo > wrote: > > > > The Go language specification never mentions undefined behavior, however > > Ian Lance Taylor wrote, in [1], that: > > > > - if your program has a ra

Re: [go-nuts] How to kill all open TCP connections?

2019-02-19 Thread Kurtis Rader
On Tue, Feb 19, 2019 at 10:43 AM wrote: > It definitely only happens after opening a connection to an external > server. And if I run tcpdrop on the connections before shutting the jail > down, it works every time. Though the connection to my browser (the program > hosts a web application) doesn'

Re: [go-nuts] Re: How to kill all open TCP connections?

2019-02-19 Thread Kurtis Rader
On Tue, Feb 19, 2019 at 10:45 AM wrote: > Go version is 1.11.4. Sorry I forgot that. If by package you mean the name > of the project, it's a closed-source commercial project; I don't think I > can say without permission from my employer. I don't know what you mean by > key code. > Pretty sure b

[go-nuts] Re: How to kill all open TCP connections?

2019-02-19 Thread rlwestlund
Go version is 1.11.4. Sorry I forgot that. If by package you mean the name of the project, it's a closed-source commercial project; I don't think I can say without permission from my employer. I don't know what you mean by key code. On Monday, February 18, 2019 at 1:41:15 AM UTC-5, Zhipeng Wang

Re: [go-nuts] How to kill all open TCP connections?

2019-02-19 Thread rlwestlund
Thanks for your reply. It definitely only happens after opening a connection to an external server. And if I run tcpdrop on the connections before shutting the jail down, it works every time. Though the connection to my browser (the program hosts a web application) doesn't cause a problem, whic

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Manlio Perillo
On Tuesday, February 19, 2019 at 7:04:22 PM UTC+1, Harald Weidner wrote: > > Hello, > > > I was trying to get a list of undefined and implementation defined > > behaviors of the Go language from the specification, but it was not > easy. > > I tried to search for "undefined behavior" and "implem

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Ian Lance Taylor
On Tue, Feb 19, 2019 at 10:04 AM Harald Weidner wrote: > > I would also consider the order in which init() functions of the same > package are executed undefined. The spec says they are executed "in the > order they appear in the source, possibly in multiple files, as presented > to the compiler".

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Ian Lance Taylor
On Tue, Feb 19, 2019 at 9:34 AM Manlio Perillo wrote: > > The Go language specification never mentions undefined behavior, however > Ian Lance Taylor wrote, in [1], that: > > - if your program has a race condition, the behavior is undefined. > > [1] https://groups.google.com/forum/#!topic/golang-

Re: [go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Harald Weidner
Hello, > I was trying to get a list of undefined and implementation defined > behaviors of the Go language from the specification, but it was not easy. > I tried to search for "undefined behavior" and "implementation defined > behavior" without success. [...] > Is this list complete? The langua

[go-nuts] undefined and implementation defined behavior in Go

2019-02-19 Thread Manlio Perillo
Hi. I was trying to get a list of undefined and implementation defined behaviors of the Go language from the specification, but it was not easy. I tried to search for "undefined behavior" and "implementation defined behavior" without success. The ISO C standard use these terms, but the Go speci

Re: [go-nuts] Help - Mongodb JSON access

2019-02-19 Thread Burak Serdar
On Tue, Feb 19, 2019 at 9:09 AM wrote: > > Hi, > > I have a json data in mongodb in the format be bellow, i need help to access > the data using > the "nfinstanceID" which is a uuid string ID part of an api request for > example example > > "http://localhost:5050/nnrf-nfm/v1/nf-instances/3fa85

[go-nuts] Help - Mongodb JSON access

2019-02-19 Thread afriyie . abraham
Hi, I have a json data in mongodb in the format be bellow, i need help to access the data using the "nfinstanceID" which is a uuid string ID part of an api request for example example "http://localhost:5050/nnrf-nfm/v1/nf-instances/3fa85f64-5717-4562-b3fc-2c963f66afaa"; The api route is

Re: [go-nuts] A Measure of Hash Function Collisions

2019-02-19 Thread Serhat Sevki Dincer
Hi, Chris kindly searched collisions on his 6 TiB ram server and we could not find any for more than 5 x 2^37 inputs (for both + and ^ versions) ! Final version of the hash is available at https://github.com/jfcg/sixb Let me know if you find one ;) On Tue, Feb 19, 2019 at 10:44 AM Chris Burkert