Re: [go-nuts] Why does Go ignore HTTP_PROXY and HTTPS_PROXY if the proxy address is localhost

2021-04-14 Thread Adrian Ho
On 14/4/21 6:39 am, Orson Cart wrote: So, to clarify: 1/ I have a proxy (Fiddler) running locally on port 2/ my /etc/hosts file has an entry as follows: 127.0.0.1 fiddler 3/ My HTTP_PROXY and HTTPS_PROXY environment variables are set to http://fiddler:  and

Re: [go-nuts] Why does Go ignore HTTP_PROXY and HTTPS_PROXY if the proxy address is localhost

2021-04-13 Thread Adrian Ho
On 14/4/21 6:39 am, Orson Cart wrote: So, to clarify: 1/ I have a proxy (Fiddler) running locally on port 2/ my /etc/hosts file has an entry as follows: 127.0.0.1 fiddler 3/ My HTTP_PROXY and HTTPS_PROXY environment variables are set to http://fiddler:  and

Re: [go-nuts] Re: Contributing to golang based project on github - collaboration best practice

2021-02-03 Thread Adrian Ho
On 3/2/21 2:21 pm, Volker Dobler wrote: To create a Github PR: git push to your fork (add it as an additional git remote) and create the PR. The "fork" is just a vehicle for a Github PR and nothing you do work on (or try to build). For a concrete example of what Volker's talking about, see the

Re: [go-nuts] Significance of Mon Jan 2 15:04:05 -0700 MST 2006?

2020-02-29 Thread Adrian Ho
On 28/2/20 5:53 pm, Steve Mynott wrote: > I was just wondering what was the significance, if any, of the magic > time layout as used by time.Parse()? > Here's my answer from 2015, long before I started learning Go:

Re: [go-nuts] Re: Question re fcns that return multiple values

2019-08-07 Thread Adrian Ho
On 7/8/19 9:44 PM, lgod...@gmail.com wrote: > f( g() ) compiles  when g returns exactly the number of args that f() > requires, but if g() returns only 1/2 that number  f (g(), g() ) wont > compile !! ...Is this not a Golang absurdity  ?? On the contrary, it's a good example of Go's pragmatism,

Re: [go-nuts] Re: Question re fcns that return multiple values

2019-08-06 Thread Adrian Ho
On 6/8/19 10:07 PM, lgod...@gmail.com wrote: > Here a specific example: > > The following compiles and runs as expected > m1x,m1y := ec.scalarMult(16,28,33)   > m2x,m2y := ec.scalarMult( 1,28,33) > rx,ry := ec.add (m1x,m1y, m2x, m2y) > > > However this stmt :    rx,ry=

Re: [go-nuts] Question re fcns that return multiple values

2019-08-05 Thread Adrian Ho
On 6/8/19 11:38 AM, lgod...@gmail.com wrote: > For f1 defined as func f1(k1, k2, k3 int) (x1, x2 int) {..}  > and f2 defined as func f2(x,y int)           (xR int)       {..}  > > Why does the compiler complain about the call stmt  > f2 ( f1 (1,2,3)  )   ?? > It shouldn't. What little you posted

Re: [go-nuts] Hexadecimal floats

2019-07-26 Thread Adrian Ho
On 26/7/19 9:20 PM, Jan Mercl wrote: > In a program that generates C, I'm using big.Float.Text > (https://golang.org/pkg/math/big/#Float.Text) to produce the exact > value of the C floating point literal. As it turns out, the function > does not support Inf values. Instead of encoding the exact