Re: [go-nuts] context for user credentials

2016-06-15 Thread daviswahl
That's *really *not what you're supposed to use a context for. If you just want a grab bag for random values (and really, you don't), you can just use a map. A context is for sharing scoped data across APIs, threads, and other boundaries. The documentation says "request scoped" but that term

Re: [go-nuts] caching of cgo compilation

2016-06-15 Thread Ian Lance Taylor
On Wed, Jun 15, 2016 at 2:54 PM, Alex Flint wrote: > Under what conditions does a cgo package get recompiled? I am using > go-sqlite3 and it appears that the C compiler/linker is run every time I > build my project, even though I am not changing any of the C sources. I >

Re: [go-nuts] [ANN] Mirror of Go SSA

2016-06-15 Thread JW Bell
>>I have to say that I don't see a big benefit to mirroring a github repo on github itself. There isn't another way to use the ssa package. On Tuesday, June 14, 2016 at 10:15:19 PM UTC-7, Ian Lance Taylor wrote: > > On Tue, Jun 14, 2016 at 7:07 PM, wrote: > > Mirror of the

Re: [go-nuts] Re: Golang Grep

2016-06-15 Thread ToSuNuS
Hi Steven, I want to use a word that the data from this function. for example; f := func() { grep(flag.Arg(0), flag.Arg(1)) } if f == "domain.com" { } or handle := exec.Command("echo", string(f[1])).Output() Examples of these subject. My purpose is to convert the string. Regards. On

Re: [go-nuts] Re: broadcasting on a set of channels

2016-06-15 Thread Ian Lance Taylor
On Tue, Jun 14, 2016 at 10:15 PM, wrote: > > What happens if the channel closes? > > I'm thinking about maintaining a list of channels (one for each websocket > client), then sending a message to all of them. The only problem is that > when the websocket client disconnects,

Re: [go-nuts] Bitmasks on signed types

2016-06-15 Thread 'Keith Randall' via golang-nuts
I do x & (0x - 1<<32). On Tuesday, June 14, 2016 at 1:44:14 PM UTC-7, Michael Jones wrote: > > I have fought this many times. > > What I almost always do is cast all variables involved as unsigned so that > I can express the logical operations as desired. The exception is right > shift

Re: [go-nuts] Hi! I'm happy to announce the very first release of *nexer* 1.0.0b simple and easy to use and extend content based network multiplexer

2016-06-15 Thread Diego Cena
Sure Konstantin! It means you can route network traffic based on transmitted content. A minimalistic example is the ur ltunnel type. :-) On Wednesday, June 15, 2016 at 7:58:36 AM UTC-3, Konstantin Khomoutov wrote: > > On Tue, 14 Jun 2016 17:29:33 -0700 (PDT) > Diego Cena

[go-nuts] [ANN] GopherPit.com - service to manage remote import paths

2016-06-15 Thread Janoš Guljaš
Hello all, I would like to announce GopherPit [0], a web service to serve and manage go-import and go-source HTML meta tags. [1] That is the base functionality, but it supports custom domains, subdomains under gopherpit.com, automatic TLS certificate generation from Let’s Encrypt, team management

Re: [go-nuts] Hi! I'm happy to announce the very first release of *nexer* 1.0.0b simple and easy to use and extend content based network multiplexer

2016-06-15 Thread Konstantin Khomoutov
On Tue, 14 Jun 2016 17:29:33 -0700 (PDT) Diego Cena wrote: > *nexer* is a simple and easy to use and extend content based network > multiplexer (or redirector) Could you please explain to the uninitiated in a couple of words what the heck "content-based network