Re: [go-nuts] Shell tab-completion

2022-07-01 Thread 'Valentin Deleplace' via golang-nuts
Thank you Steve On Thursday, June 30, 2022 at 12:23:41 PM UTC+2 steve@gmail.com wrote: > On Thu, 30 Jun 2022 at 11:07, 'Valentin Deleplace' via golang-nuts < > golan...@googlegroups.com> wrote: > >> Hello, is there a recommended way to achieve command line c

[go-nuts] Shell tab-completion

2022-06-30 Thread &#x27;Valentin Deleplace' via golang-nuts
Hello, is there a recommended way to achieve command line completion of the go command with Bash and Zsh? E.g. go te -> go test go bui -> go build I don't have that out-of-the-box, and the install page doesn't mention it. I've seen a couple of 3rd party github repo

Re: [go-nuts] How string constants are propagated inside a small func

2021-05-03 Thread &#x27;Valentin Deleplace' via golang-nuts
Thank you all for the insights On Saturday, May 1, 2021 at 1:29:15 PM UTC+2 jesper.lou...@gmail.com wrote: > On Fri, Apr 30, 2021 at 7:51 PM 'Valentin Deleplace' via golang-nuts < > golan...@googlegroups.com> wrote: > >> I don't know exactly what SSA do

[go-nuts] How string constants are propagated inside a small func

2021-04-30 Thread &#x27;Valentin Deleplace' via golang-nuts
Hi, I was surprised that the funcs f and g do not generate the same assembly code: func f() string { s := "a" + "b" return s } func g() string { s := "a" s += "b" return s } The compiled assembly respects the apparent instructions of the source code, wit

Re: [go-nuts] sort.Slice arguments

2017-03-08 Thread Valentin Deleplace
I did explain the expected result : "and I want to visit other cities in alphabetical order" Le 8 mars 2017 2:16 PM, "Jan Mercl" <0xj...@gmail.com> a écrit : > On Wed, Mar 8, 2017 at 2:10 PM Val wrote: > > > What do you think? > > You should explain what you've expected to get instead of what yo