[go-nuts] GoLang's ReverseProxy

2019-10-02 Thread Patrik Iselind
Hi, I'm using the ReverseProxy from the httputil package and cannot figure out how the director can communicate to the reverse proxy that the director failed to rebuild the request. The result, as I see it, should become an HTTP 500/502 error being returned to the caller and the request not pro

Re: [go-nuts] Channels may not be the best solution in Go

2019-10-02 Thread burak serdar
On Wed, Oct 2, 2019 at 11:07 PM Travis Keep wrote: > > I've been working on a math library github.com/keep94/gomath. This library > has functions for generating prime numbers, ugly numbers, harshad numbers, > happy numbers etc. Since there are infinitely many prime numbers, ugly > number, har

[go-nuts] Channels may not be the best solution in Go

2019-10-02 Thread Travis Keep
I've been working on a math library github.com/keep94/gomath. This library has functions for generating prime numbers, ugly numbers, harshad numbers, happy numbers etc. Since there are infinitely many prime numbers, ugly number, harshad numbers etc, these functions I wrote returned either a ch

[go-nuts] Re: causal profiling in Go

2019-10-02 Thread Urjit Singh Bhatia
Hi, I just ran coz on a project of mine a few days ago. Building it properly was a little bit of trail and error to figure how out how get the build to play nice with the profiler but eventually I got it working. For builds, use go build -o -ldflags=-compressdwarf=false So that coz can read

[go-nuts] Go Cloud Development Kit is looking for early adopters

2019-10-02 Thread JuciÊ Andrade
"Go CDK provides commonly used, vendor-neutral generic APIs that you can deploy across cloud providers. The idea is to support hybrid cloud deployments while combining on-prem (local) and cloud tools." https://gocloud.dev/ -- You received this message because you are subscribed to the Google G

[go-nuts] Go WASM question

2019-10-02 Thread Tad Vizbaras
I have sizable Go WASM application that creates map[string]interface{} and passes to JS or reads from JS library. Go maps do not have predefined key order. But JS has object property order predictable in JavaScript objects since ES2015. Problem: when JS objects are transferred from JS into Go an

Re: [go-nuts] A confusion on the cgo document.

2019-10-02 Thread T L
Got it. Thanks, Ian. On Mon, Sep 30, 2019 at 9:10 PM Ian Lance Taylor wrote: > On Mon, Sep 30, 2019 at 1:01 AM T L wrote: > > > > https://golang.org/cmd/cgo/#hdr-Passing_pointers > > > > When passing a pointer to a field in a struct, the Go memory in question > is the memory occupied by the fie

Re: [go-nuts] Re: Go policy does not fully support previous release

2019-10-02 Thread 'Axel Wagner' via golang-nuts
Hey, just because you asked for community-input multiple times (and I don't want to see claims again, that the Go team would ignore community input): I was aware of this policy and I agree with it. If nothing else, consider that as *users* of Go, we also benefit from this policy. Because at the e

[go-nuts] Re: go binaries behaves differently on two identical linux servers

2019-10-02 Thread Jason E. Aten
Presumably you are running the exact same binary (compiled Go program) on both server-1 and server-2. Hence the differences must be due to machine configuration. Something outside of your Go code. I suggest that you spin up a 3rd linode, clone it from master (or the working server) and insta

[go-nuts] Re: go binaries behaves differently on two identical linux servers

2019-10-02 Thread Jason E. Aten
Presumably you are running the exact same binary (compiled Go program) on both server-1 and server-2. Hence the differences must be due to machine configuration. Something outside of your Go code. I suggest that you ppin up a 3rd linode, clone it from master (or the working server) and instal