Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellLuo committed Mar 13, 2021
1 parent 1d478b8 commit d50a1a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d50a1a7

Please sign in to comment.