podhmo / noerror

Sometimes, simple is too strict, and easy is too complicated
1 stars 0 forks source link

BindWith? #19

Closed podhmo closed 5 years ago

podhmo commented 5 years ago

e.g.

    s, err := c.Session(ctx, "db")
    noerror.Must(t, err)

to

var s Session
noerror.BindWith(s.Session("db"), &s)

and BindWithTeardown?

podhmo commented 5 years ago

hmm..

podhmo commented 5 years ago

:fearful: drop bind. this is bad.