Re: [go-nuts] go fmt and CI (e.g. gitlab)

2018-02-19 Thread Stéphane Jeandeaux
Hi Jerome, You can take a look at git hooks https://golang.org/misc/git/pre-commit. Code: test -z "$(gofmt -s -l $(find . -name '*.go' -type f -print) | tee /dev/stderr)" Thanks and regards, Stephane Jeandeaux. On Mon, Feb 19, 2018 at 6:44 AM Jérôme LAFORGE wrote: >

Re: [go-nuts] test huge table driven

2021-10-05 Thread Stéphane Jeandeaux
Hi Jerome, Have you tried to parallelize the tests? t.Run(tc.name, func(t *testing.T) { t.Parallel() // your test }) Best Regards, Stephane On Tue, Oct 5, 2021 at 2:08 PM Jérôme LAFORGE wrote: > Hello, > I want to know if someone has already think about to split automatically > (by

Re: [go-nuts] Re: go install of forked repo

2022-12-05 Thread Stéphane Jeandeaux
Hi, If you don't want to commit *go.mod*, you can use *go.work * https://go.dev/ref/mod#go-work-file On Monday, December 5, 2022 at 9:52:17 AM UTC+1 kortschak wrote: > On Sun, 2022-12-04 at 23:47 -0800, 'Christian Stewart' via golang-nuts > wrote: > > I definitely fork things and use "replace"

Re: [go-nuts] Re: Retrieve Path Parameters using inbuild http/Net package

2022-11-17 Thread Stéphane Jeandeaux
Hi, Path parameters: http:// /path_parameter_1/path_parameter_2/?query_param1=... The default library does not handle path parameters. If you don't want to use an external library, you can implement your own parsing by using url.EscapedPath. On Thu, Nov 17, 2022 at 9:23 AM Peter Galbavy wrote: