doc: update README for *api.Context handler argument
This commit is contained in:
parent
53dfc8f679
commit
6a78351a2c
|
@ -261,7 +261,7 @@ type res struct{
|
||||||
Output2 bool
|
Output2 bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func myHandler(r req) (*res, api.Err) {
|
func myHandler(ctx *api.Context, r req) (*res, api.Err) {
|
||||||
err := doSomething()
|
err := doSomething()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, api.ErrFailure
|
return nil, api.ErrFailure
|
||||||
|
|
Loading…
Reference in New Issue