[go-nuts] Re: How to install protoc-gen-go (Go protocol buffer compiler plugin) in windows ?

2021-03-22 Thread Joseph Hoeller
How do you do this on Windows? On Thursday, June 25, 2015 at 9:20:02 AM UTC-4 Joshua wrote: > I use both. Did you include the %GOPATH%/bin in your %PATH%? > > Joshua > > > On Thursday, June 25, 2015 at 9:17:51 AM UTC-4, Aravinth Veeramuthu wrote: >> >> Yes, I download it.But i have some problem

[go-nuts] 00% remote Job Opportunity

2021-03-22 Thread Victoria Bernal
Dear Go Developers in Latin America, We have an opportunity to work 100% Remote with an american company. For more details about the requirements please visit: https://apply.workable.com/zipdev/j/A8762516D1/ - 4+ years as a software engineering experience - 3+ years with a scripting

Re: [go-nuts] No Generics - Type Binding on Imports

2021-03-22 Thread Ian Lance Taylor
On Mon, Mar 22, 2021 at 2:10 AM Martin Leiser wrote: > > > What happens if > >I try to import a package that defines that Min function but I set the > >argument type to some that does not support the < operator? > I would simply write two similar packages: one using the above mentioned >

Re: [go-nuts] go build error in darwin: duplicate symbol

2021-03-22 Thread Ian Lance Taylor
On Mon, Mar 22, 2021 at 7:40 AM Alex wrote: > > A package you import could be using cgo, you don't have to be using it > directly. I'll add that I think that this must be what is happening, as you could not get that error message in a program that doesn't use cgo anywhere. Ian -- You

Re: [go-nuts] Trying to use a tool in my build (a friction log)

2021-03-22 Thread 'Jay Conrod' via golang-nuts
> Is it by design that these two commands ['go mod tidy' and 'go mod vendor'] are unstable like that? That is more or less by design, but the behavior has evolved over time and it may be worth revisiting. This was discussed in #29058 . The rationale was

[go-nuts] golang/mobile: Could we add GitHub Actions for PRs?

2021-03-22 Thread Michael Chong
GitHub Actions has been introduced for a while. For PRs of go-mobile , only *google-cla *is running on GitHub Actions. I wonder whether we can add support like automatic testing? -- You received this message

Re: [go-nuts] go build error in darwin: duplicate symbol

2021-03-22 Thread Alex
A package you import could be using cgo, you don't have to be using it directly. If you run `GOOS=linux go build` on a mac, that is cross compileing and cgo is disabled by default. You can try `CGO_ENABLED=0 go build` and if it works then it is cgo related. >From the error messages, it looks

Re: [go-nuts] go build error in darwin: duplicate symbol

2021-03-22 Thread Max Xu
But I didn't write cgo code in my project. The weird part is I can build success with *GOOS=linux go build*, but failed with *GOOS=darwin go build* On Friday, March 19, 2021 at 5:11:57 AM UTC+8 Ian Lance Taylor wrote: > On Thu, Mar 18, 2021 at 9:55 AM Max Xu wrote: > > > > I'm running into a

Re: [go-nuts] No Generics - Type Binding on Imports

2021-03-22 Thread Martin Leiser
Am 22.03.2021 um 10:10 schrieb Martin Leiser: Am 21. März 2021 22:01:38 MEZ schrieb Ian Lance Taylor : On Sun, Mar 21, 2021 at 1:02 PM Martin Leiser wrote: ... import "container/list" stringlist type ElementType = string What if I want to have a list of lists of strings? That is a

[go-nuts] net.Listen is unable to detect port conflict on Windows

2021-03-22 Thread Nicola Murino
Hi, I recently discovered this strange behaviour, Windows allows the coexistence of three types of sockets on the same transport-layer service port, for example, 127.0.0.1:8080, [::1]:8080 and [:::0.0.0.0]:8080. So if you use something like: net.Listen("tcp", fmt.Sprintf(":%d", port) and

[go-nuts] Re: Fixing deprecated: golang.org/x/oauth2: Transport.CancelRequest no longer does anything; use contexts

2021-03-22 Thread cpu...@gmail.com
Opened https://github.com/golang/oauth2/issues/487 to propose removing the `CancelRequest` method. Cheers, Andreas On Friday, March 19, 2021 at 5:44:21 PM UTC+1 cpu...@gmail.com wrote: > Hi all, > > I've recently learned about oauth2 and started to convert some of my > "manual" code using

Re: [go-nuts] No Generics - Type Binding on Imports

2021-03-22 Thread Martin Leiser
Am 21. März 2021 22:01:38 MEZ schrieb Ian Lance Taylor : >On Sun, Mar 21, 2021 at 1:02 PM Martin Leiser >wrote: >> >> I think so. But How? Remember we need to do two things: >> >> - A way to define type parameters. >> >> - A way to bind the type parameters to concrete types at compile