Re: [go-nuts] Type inference based on constraints

2022-02-18 Thread Jeff Peck
On 2/16/2022 2:43 PM, Ian Lance Taylor wrote: On Tue, Feb 15, 2022 at 2:49 PM Blackgreen wrote: I came across this stack overflow question: https://stackoverflow.com/questions/71131665/generics-pass-map-with-derived-types The OP attempted to pass different maps into this code: func

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

2021-04-14 Thread Jeff Peck
Just a complete shot in the dark. Have you verified that the environment variables you set are indeed getting picked up inside of your application? Try checking the output of os.GetEnv("HTTP_PROXY"), os.GetEnv("HTTPS_PROXY"), and os.GetEnv("NO_PROXY"). Make sure that if NO_PROXY is set that it

Re: [go-nuts] Why does my code keep giving me "socket: too many open files"

2021-04-09 Thread Jeff Peck
On 4/9/21 11:57 AM, Tenjin wrote: Basically I am making a script to query an api for some json data, if I run it synchronously it works fine and works as intended but it needs to do this give or take 15thousand times so I thought I would use concurrency to get the job done. It works fine for