[go-nuts] Re: political fundraising on golang.org!

2020-06-15 Thread Marian Kopriva
I agree with Peter's sentiment here. On Sunday, June 14, 2020 at 3:36:38 PM UTC+2, peterGo wrote: > > Recently, a political message with a fundraising link appeared as a banner > atop golang.org websites: https://golang.org/, https://pkg.go.dev/. > > content/static: add Black Lives Matter banner

Re: [go-nuts] Inspecting a function for its arguments with reflection

2017-03-20 Thread Marian Kopriva
Check out https://github.com/go-martini/martini if you're looking for some magic. In case you don't find any magic there, then i'm sorry, i've havne't used martini myself, and am not familiar with its source, i've only heard from others that it's quite magicky. -- You received this message

[go-nuts] Re: Inspecting a function for its arguments with reflection

2017-03-20 Thread Marian Kopriva
What you're looking for is reflect.Type.NumIn()int and reflect.Type.In(i int) Type. See example here https://play.golang.org/p/q1D56Abj-5 On Tuesday, March 21, 2017 at 12:01:09 AM UTC+1, Tyler Compton wrote: > > I'm trying to create an HTTP request router library that automatically > decodes

[go-nuts] Re: generic "CRUD" handlers

2016-12-25 Thread Marian Kopriva
Here's the relevant paragraph from the guide you linked to (emphasis mine): Note how goagen generated a main.go for our app as well as a skeleton > controller (bottle.go). These two files are meant to help bootstrap a new > development, *they won’t be re-generated (by default) if already

Re: [go-nuts] Packaging Test Utilities in a Project

2016-12-18 Thread Marian Kopriva
What Dave suggested should work, in your example package1, package2, package3 and package4 should be able to import testhelpers with `import "project/internal/testhelpers"` On Sunday, December 18, 2016 at 2:48:41 PM UTC+1, Henry wrote: > > Where do you put this internal package in relation to