[go-nuts] Go open source tools

2020-10-22 Thread durgasomes...@gmail.com
Hi Team, Anyone helps me to get the below information. Do we have any reference to get and learn about go open source tools like vet and dependency tools? Thanks, Durga SomeswaraRao G. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] Context tree inspection/printing

2020-10-22 Thread Amit Saha
Hi all, I have been exploring contexts recently and I am curious does anyone know of/have written a tool to analyse packages and print context trees? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Table driven tests and error/output testing

2020-10-22 Thread Amit Saha
> On 21 Oct 2020, at 8:31 am, roger peppe wrote: > > It looks like you're testing a top level command. You might want to consider > using the testscript package, which provides a very concise way of end-to-end > testing this kind of thing. > > e.g. > > mycommand -h > cmp stdout

[go-nuts] Re: differentiate if a value was set or not

2020-10-22 Thread Ian Lance Taylor
On Thu, Oct 22, 2020 at 1:19 PM Andrew wrote: > > I've finished the survey but want to add this: > Go can add something for library author to "differentiate if a value was set > or not internally", so that we can use plain Go type in the library. > > Here is a link to the problem: >

[go-nuts] Blog: Announcing the 2020 Go Developer Survey

2020-10-22 Thread Andrew
Here is the blog: https://blog.golang.org/survey2020 Here is the link: Take the 2020 Go Developer Survey I've finished the survey but want to add this: Go can add something for library author to "differentiate if a value was set or not

Re: [go-nuts] proposal: generics: type Inter int8,int16,int32,int64

2020-10-22 Thread Ian Lance Taylor
On Thu, Oct 22, 2020 at 9:35 AM haibin wei wrote: > > this is only an idea, hope it's useful. > > no `T`, only `type` as `types`. > > ```go > type Inter int8,int16,int32,int64 > > func Less(a,b Inter)bool{ > return a } > > // and > type UInter uint8,uint16,uint32,uint64 > type Float

Re: [go-nuts] Any embedded scripting language for Go

2020-10-22 Thread Jan Mercl
In case you're on Linux and you like Tcl: https://godoc.org/modernc.org/tcl#example-Interp-NewCommand On Wed, Oct 21, 2020, 07:32 Aravindhan K wrote: > Hi, > > I am looking for a way to build interactive app,where user will be giving > instructions to draw as a script,rendering of the script

[go-nuts] Goph SSH Client v0.9.0 Released!

2020-10-22 Thread Mohamed Elbahja
Hi all, I'm pleased to announce Goph 0.9.0! Goph is a lightweight Go SSH client focusing on simplicity! Features - Easy to use and simple API. - Supports known hosts by default. - Supports connections with passwords. - Supports connections with

[go-nuts] proposal: generics: type Inter int8,int16,int32,int64

2020-10-22 Thread haibin wei
hi: this is only an idea, hope it's useful. no `T`, only `type` as `types`. ```go type Inter int8,int16,int32,int64 func Less(a,b Inter)bool{ return ahttps://groups.google.com/d/msgid/golang-nuts/d8cb3242-4c7f-40ae-a46a-be5464615e56n%40googlegroups.com.

Re: [go-nuts] gccgo problem compiling go from source

2020-10-22 Thread Gerrit Binnenmars
Hello Hugo, I did not succeed in getting crosstool-ng produce a go tool. Instead I adapted the source of the "normal" go tool and simply removed the check and added a fmt.Fprintf instead. It shows that even with go build -compiler gccgo the test is first called with the gc compiler and then

Re: [go-nuts] Re: Generating code into module cache?

2020-10-22 Thread Paul Jolly
> Mostly trying to improve the UX by avoiding generated code clutter during > development. I concede that storing all your generated code in one directory > inside your project isn't that big of a deal. Another solution could be to > configure your editor to hide the generated directory.

Re: [go-nuts] Golang slow performance inside for loop MySQL Queries

2020-10-22 Thread Jesper Louis Andersen
On Tue, Oct 20, 2020 at 6:51 PM wrote: > var count int > var favorited string > > fetchBookmarks := Config.DB.QueryRow("SELECT COUNT(*) FROM > favorites where userID = ? and postID = ? and status = ?", userID, postID, > "added").Scan() > > if fetchBookmarks != nil

Re: [go-nuts] gccgo problem compiling go from source

2020-10-22 Thread Gerrit Binnenmars
Ian, thanks for clearing that up. Will have another look at crosstool-ng. On Tue, Oct 20, 2020 at 9:21 PM Ian Lance Taylor wrote: > > On Tue, Oct 20, 2020 at 8:17 AM Gerrit Binnenmars > wrote: > > > > You are correct, what I try is to cross-compile a go application (in this > > case Mender