Re: [go-nuts] go get "github.com/gbin/goncurses" fails--invalid flag in pkg-config

2021-10-10 Thread Ian Lance Taylor
On Sun, Oct 10, 2021 at 6:56 PM Kurtis Rader wrote: > > On Sun, Oct 10, 2021 at 6:36 PM richard thiebaud > wrote: >> >> Is this an error in the project? > > > Yes, although technically it seems to be a problem with the pdcurses/ncurses > dependency. The Go toolchain doesn't provide the

Re: [go-nuts] Will the generics support be enabled by default in Go 1.18?

2021-10-10 Thread Ian Lance Taylor
On Sun, Oct 10, 2021 at 2:55 AM nil...@gmail.com wrote: > > We are really excited about the coming generics support in Go, our test drive > of the generics support in 1.17 is so far pretty positive and it would also > allow us to immediately delete tens of thousands lines of code from our main

[go-nuts] Unable to install go tools on VSCODE

2021-10-10 Thread singsanthoh
Hi, I tried to install the go tools package either via VS CODE Editor as well as on the command line but all fails with the below message: go get: module github.com/golang/example/hello: Get "https://proxy.golang.org/github.com/golang/example/hello/@v/list": dial tcp :443: connectex: No

Re: [go-nuts] go get "github.com/gbin/goncurses" fails--invalid flag in pkg-config

2021-10-10 Thread Kurtis Rader
On Sun, Oct 10, 2021 at 6:36 PM richard thiebaud wrote: > Is this an error in the project? > Yes, although technically it seems to be a problem with the pdcurses/ncurses dependency. The Go toolchain doesn't provide the pkg-config file. That's from the CGO dependency. See, for example,

Re: [go-nuts] go get "github.com/gbin/goncurses" fails--invalid flag in pkg-config

2021-10-10 Thread richard thiebaud
Is this an error in the project? On Sunday, October 10, 2021 at 9:22:07 PM UTC-4 Kurtis Rader wrote: > Wouldn't it make more sense to open an issue against that project? > Although, since it hasn't seen any updates in eight years you'll probably > not get much support. Perhaps try the project

Re: [go-nuts] go get "github.com/gbin/goncurses" fails--invalid flag in pkg-config

2021-10-10 Thread Kurtis Rader
Wouldn't it make more sense to open an issue against that project? Although, since it hasn't seen any updates in eight years you'll probably not get much support. Perhaps try the project it was forked from since it appears to be actively maintained? https://github.com/rthornton128/goncurses On

[go-nuts] go get "github.com/gbin/goncurses" fails--invalid flag in pkg-config

2021-10-10 Thread richard thiebaud
go 1.13 Linux mint 20.2: dick@dick2:~$ go get "github.com/gbin/goncurses" go build github.com/gbin/goncurses: invalid flag in pkg-config --libs: -Wl,-Bsymbolic-functions -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

[go-nuts] Best Go paid course

2021-10-10 Thread Ahmed Adly
Hello friends, I'm an engineer with some good background in different programming languages like dotnet and Spring boot, also I have focused on web (mainly react) for the past few years, I also have `basic` knowledge in Go. Now i need to take the next level in Go and build some large scale API

Re: [go-nuts] Problem using embed in Go 1.16

2021-10-10 Thread Marcin Romaszewicz
If you're not directly using symbols from embed, import it with an _ alias, eg: import _ "embed" -- Marcin On Sun, Oct 10, 2021 at 9:12 AM Tong Sun wrote: > Hi, > > I'm having problem using embed with Go 1.16. I'm getting ether > > - //go:embed only allowed in Go files that import "embed" > -

[go-nuts] Re: Problem using embed in Go 1.16

2021-10-10 Thread Tong Sun
On Sunday, October 10, 2021 at 12:23:27 PM UTC-4 Tong Sun wrote: > Ahh, found it but you beat me to it. > > Apparently the sample code that I'm referring to, > https://github.com/treeverse/blogs/blob/master/mypostcard/main.go > from https://lakefs.io/working-with-embed-in-go/ > is outdated. >

[go-nuts] Re: Problem using embed in Go 1.16

2021-10-10 Thread Tong Sun
Ahh, found it but you beat me to it. Apparently the sample code that I'm referring to, https://github.com/treeverse/blogs/blob/master/mypostcard/main.go from https://lakefs.io/working-with-embed-in-go/ is outdated. Thanks! On Sunday, October 10, 2021 at 12:20:42 PM UTC-4 seank...@gmail.com

[go-nuts] Re: Problem using embed in Go 1.16

2021-10-10 Thread Sean Liao
import _ "embed" It means to import it for side effects only On Sunday, October 10, 2021 at 6:12:07 PM UTC+2 sunto...@gmail.com wrote: > Hi, > > I'm having problem using embed with Go 1.16. I'm getting ether > > - //go:embed only allowed in Go files that import "embed" > - or imported and not

[go-nuts] Problem using embed in Go 1.16

2021-10-10 Thread Tong Sun
Hi, I'm having problem using embed with Go 1.16. I'm getting ether - //go:embed only allowed in Go files that import "embed" - or imported and not used: "embed" The test code is published at https://github.com/suntong/lang/tree/master/lang/Go/src/ds/embed here are the details: If I remove the

[go-nuts] Will the generics support be enabled by default in Go 1.18?

2021-10-10 Thread nil...@gmail.com
Hi all, We are really excited about the coming generics support in Go, our test drive of the generics support in 1.17 is so far pretty positive and it would also allow us to immediately delete tens of thousands lines of code from our main project. Our understanding is that Go team's current

Re: [go-nuts] How and where the function cmd/go/internal/lockedfile.(*File).Read autogenerated

2021-10-10 Thread xiaodong liu
Thanks for the tip! On Sun, Oct 10, 2021 at 7:40 AM Ian Lance Taylor wrote: > On Sat, Oct 9, 2021 at 3:23 PM xiaodong liu wrote: > > > > I debugged the program on linux/loong64 when I rebased code, but I met a > bug that R1 is clobbered, R1 is also as LINK Register on loong64. Here is > the