diff --git a/README.md b/README.md index 045253b..03706f6 100644 --- a/README.md +++ b/README.md @@ -286,10 +286,8 @@ See more examples [here](examples). + Argument aggregation: ```go - import "net" - type Service interface { - // @kok(op): POST /users + // @kok(op): POST /logs // @kok(param): ip < in:header,name:X-Forwarded-For // @kok(param): ip < in:request,name:RemoteAddr Log(ctx context.Context, ip net.IP) (err error) @@ -418,7 +416,7 @@ type Codec struct { httpcodec.JSON } -func (c *Codec) DecodeRequestParams(name string, values map[string][]string, out interface{}) error { +func (c Codec) DecodeRequestParams(name string, values map[string][]string, out interface{}) error { switch name { case "ip": // We are decoding the "ip" argument.