FAQ
Hello, world !

I just made a little generation tool that will allow you to generate the
http code that will call your fully typed http function.

Given

func F(x X, y Y, z *Z, zz z.Z) (err error) {...}
//or
func F(x X, y Y, z *Z, zz z.Z) (status int, err error) {...}
//or
func F(x X, y Y, z *Z, zz z.Z) (resp interface{}, status int, err error)
{...}
//or
func F(x X, y Y, z *Z, zz z.Z) (resp http.Handler, status int, err error)
{...}
//or
func F(x X, y Y, z *Z, zz z.Z) (resp []byte, status int, err error) {...}

Generate the code that will:
* instantiate a variing number of types.
* call F(types...)
* check return statuses for you

For a concrete example, have a look at:
https://github.com/azr/generators/blob/master/varhandler/examples/user_crud.go
which generates the `*UserHandler` funcs in
https://github.com/azr/generators/blob/master/varhandler/examples/generated_varhandlers.go


Please tell me if you like it :)

Also please tell me why you don't !!

Cheers !

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 28, '16 at 1:50p
activeMar 28, '16 at 1:50p
posts1
users1
websitegolang.org

1 user in discussion

Adrien Delorme: 1 post

People

Translate

site design / logo © 2021 Grokbase