Skip to content

Commit

Permalink
fix: short variable declaration error
Browse files Browse the repository at this point in the history
should be `:=` instead of `=`
  • Loading branch information
buttercubz authored Sep 22, 2020
1 parent d679d25 commit 74fbafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ param := req.Param{
"cmd": "add",
}
// only url is required, others are optional.
r, err = req.Post("http://foo.bar/api", header, param)
r, err := req.Post("http://foo.bar/api", header, param)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 74fbafc

Please sign in to comment.