Re: [go-nuts] go language sensitive editor?

2018-11-21 Thread Bakul Shah
On Nov 20, 2018, at 12:52 PM, Pat Farrell wrote: > > I know, this is both a FAQ and an unanswerable question. I'm an old > programmer who has used nearly every editor known to man. I am not a fan of > whole-universe IDEs, but can use them. I also speak vi/vim pretty fluently. > > What editors

Re: [go-nuts] Append array to slice of slice behavior puzzles me

2018-11-21 Thread Sam Mortimer
On Wednesday, November 21, 2018 at 2:38:42 PM UTC-8, Sun Frank wrote: > > Perfect! Thank you so much for your answer and explanation, : ) > It is, unfortunately, a very common "gotcha". More discussion can be found here: https://github.com/golang/go/issues/20733 Cheers, -Sam. > Best

Re: [go-nuts] Memory limits

2018-11-21 Thread Matthew Zimmerman
Thanks! I had run into the limit before, but I had seen it was getting addressed, I just wasn't sure how. I am not running into any looking now, just wanted to understand what they changed into as we are planning for the future with hardware choices. It sounds like the memory limit is removed

Re: [go-nuts] Memory limits

2018-11-21 Thread rlh
If this is important and wasn't fixed in 1.11 or at tip then please file a bug report with a reproducer at https://github.com/golang/go/issues. An issue number will result in the Go team investigating. On Friday, November 16, 2018 at 1:12:58 PM UTC-5, Robert Engels wrote: > > This article >

Re: [go-nuts] New issue: internal compiler error: 'xfunc_22': panic during fuse while compiling xfunc_22

2018-11-21 Thread Ian Lance Taylor
On Wed, Nov 21, 2018 at 2:09 AM, Jan Mercl <0xj...@gmail.com> wrote: > On Wed, Nov 21, 2018 at 1:49 AM Ian Lance Taylor wrote: > >> I can recreate the error with 1.11.2, but the file compiles >> with tip. I would guess that this is https://golang.org/issue/28616, >> which should be fixed in

Re: [go-nuts] Append array to slice of slice behavior puzzles me

2018-11-21 Thread Sun Frank
Perfect! Thank you so much for your answer and explanation, : ) Best Regards Mail : elitegobli...@gmail.com Mobile : 0422 118 452 TechBlog : http://elitegoblin.github.io GitHub: http://github.com/eliteGoblin/ andrey mirtchovski 于2018年11月22日周四 上午9:22写道: > this is a case of a

Re: [go-nuts] Append array to slice of slice behavior puzzles me

2018-11-21 Thread andrey mirtchovski
this is a case of a variable being reused during a range loop. essentially k[:] is optimized to something resembling (a pointer to the memory location of the backing array) which is appended as such to the [][]int variable. the next iteration it is the same variable in memory, however it's

Re: [go-nuts] Append array to slice of slice behavior puzzles me

2018-11-21 Thread Miguel Angel Rivera Notararigo
Hi, just add k := k after the for-range line -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit

[go-nuts] Re: go language sensitive editor?

2018-11-21 Thread Serge Voilokov
I am using micro editor: https://github.com/zyedidia/micro . It is terminal-based, supports mouse, uses ctrl+zxcv and shift+arrows for text manipulation, has a multi cursor feature, syntax highlighting. Written in golang. Easy to configure and change. I am using my fork

[go-nuts] Append array to slice of slice behavior puzzles me

2018-11-21 Thread Sun Frank
Hi guys, I came across some code that surprised me, but I could not figured out why it behave like this, s := make([][]int, 0) a1 := [3]int{1, 2, 3} a2 := [3]int{4, 5, 6} s = append(s, a1[:]) s = append(s, a2[:]) fmt.Println(s) mp := make(map[[3]int]bool) mp[[3]int{1, 2, 3}] = true mp[[3]int{4,

Re: [go-nuts] Determining latest released Go version

2018-11-21 Thread Janne Snabb
Thanks! I think programmers are more likely to stay consistent than web designers — thus this feels a bit better than scraping a web page. Janne Snabb sn...@epipe.com On 20/11/2018 22.06, Caleb Mingle wrote: Perhaps something built using these may work (sorting the go1* tags descending?):

Re: [go-nuts] Re: google civic api

2018-11-21 Thread Alex Dvoretskiy
Thanks! This is so helpful. I got an idea. Now I can get integer congressional id :) ср, 21 нояб. 2018 г. в 12:14, Caleb Mingle : > I'm not entirely clear on what you're after, but does this help? > https://play.golang.org/p/AcNBcUVtXGg > > That will return you the name field given a state

Re: [go-nuts] Re: google civic api

2018-11-21 Thread Caleb Mingle
I'm not entirely clear on what you're after, but does this help? https://play.golang.org/p/AcNBcUVtXGg That will return you the name field given a state name. If you need an integer congressional district number, that will require some modification. If you want this to work without having to

[go-nuts] Re: Go list returning directory starting with underscore on Ubuntu

2018-11-21 Thread ipoblete
Hi, I have the same problem, but I just want to scan my custom packages, when I do the go list. / ... it returns the correct routes, but with the underscore at the beginning of the routes, it is worth noting that the project does not have it inside the $ GOPATH (my $ GOPATH is in $ HOME / go)

Re: [go-nuts] Re: go modules and vendor: redundant features?

2018-11-21 Thread Tyler Compton
> People keep adding stuffs into Go and later find themselves unable to remove existing features due to the backward compatibility promise. Go 1.11 is a different beast than Go 1.0, and is significantly more complex. For what it's worth, I don't believe that tooling is covered under the backward

Re: [go-nuts] Using git-codereview with GitHub

2018-11-21 Thread Paul Jolly
> There is hub [1]. If you have not heard it, its work by > repo-branch-commits, Thanks, but as I understand it, this tool is branch-based. I want to make my workflow oriented around single commits (on a local branch). Paul -- You received this message because you are subscribed to the

Re: [go-nuts] Using git-codereview with GitHub

2018-11-21 Thread Shulhan
On Wed, 21 Nov 2018 13:49:32 + Paul Jolly wrote: > > What I'm ultimately trying to achieve is something akin to Gerrit's > relation chain. That is, have a number of commits on a local branch, > and have each commit correspond to a GitHub PR. Would involve creating > some PR-specific

[go-nuts] Using git-codereview with GitHub

2018-11-21 Thread Paul Jolly
Hi all, Has anyone thought about/tried to get https://godoc.org/golang.org/x/review/git-codereview working with a GitHub backend? What I'm ultimately trying to achieve is something akin to Gerrit's relation chain. That is, have a number of commits on a local branch, and have each commit

Re: [go-nuts] go language sensitive editor?

2018-11-21 Thread Paul Jolly
> > To add to the responses below, a Language Server Protocol (LSP - > > https://microsoft.github.io/language-server-protocol/) implementation > > is also in the works > > Is there a link to share wrt 'in the works'? Sorry, yes, that was needlessly vague. We get updates from the Go tooling team

Re: [go-nuts] front-end post a body, back-end use gin.Context BindJSON but fail

2018-11-21 Thread ge . sf . chn
thanks,you are right, i got it at that night. 在 2018年11月9日星期五 UTC+8下午10:14:14,Burak Serdar写道: > > On Fri, Nov 9, 2018 at 6:35 AM > wrote: > > > > front-end info > > //body struct > > type Bucket struct { > >Name string `json:"name"` > >KeyId string `json:"key_id"` > >

Re: [go-nuts] go language sensitive editor?

2018-11-21 Thread Jan Mercl
On Wed, Nov 21, 2018 at 11:58 AM Paul Jolly wrote: > To add to the responses below, a Language Server Protocol (LSP - > https://microsoft.github.io/language-server-protocol/) implementation > is also in the works Is there a link to share wrt 'in the works'? -- -j -- You received this

Re: [go-nuts] go language sensitive editor?

2018-11-21 Thread Paul Jolly
To add to the responses below, a Language Server Protocol (LSP - https://microsoft.github.io/language-server-protocol/) implementation is also in the works that will help to "level the playing field" for language awareness between editors. It will also make it possible to easily integrate new

Re: [go-nuts] New issue: internal compiler error: 'xfunc_22': panic during fuse while compiling xfunc_22

2018-11-21 Thread Jan Mercl
On Wed, Nov 21, 2018 at 1:49 AM Ian Lance Taylor wrote: > I can recreate the error with 1.11.2, but the file compiles > with tip. I would guess that this is https://golang.org/issue/28616, > which should be fixed in 1.11.3. Thank you. I failed to find that issue. Glad to hear it's fixed

Re: [go-nuts] go language sensitive editor?

2018-11-21 Thread Marko Ristin-Kaufmann
We use GoLand at our company. I used vim with plugins, but Goland is far superior when it comes to refactoring. Le mar. 20 nov. 2018 à 21:52, Pat Farrell a écrit : > I know, this is both a FAQ and an unanswerable question. I'm an old > programmer who has used nearly every editor known to man. I