doc: update README for *api.Context handler argument

This commit is contained in:
Adrien Marquès 2021-06-20 00:56:25 +02:00
parent 53dfc8f679
commit 6a78351a2c
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ type res struct{
Output2 bool
}
func myHandler(r req) (*res, api.Err) {
func myHandler(ctx *api.Context, r req) (*res, api.Err) {
err := doSomething()
if err != nil {
return nil, api.ErrFailure