1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 18:37:05 +00:00

README.md: example change

Former-commit-id: 4a66a689f86e5cd93ec9001e5ca18b4f5d3923be
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-07-23 15:58:55 +03:00
parent f7c0cbe5cd
commit 7337396e3c
5 changed files with 87 additions and 41 deletions

View File

@@ -27,6 +27,7 @@ func main() {
// Read
app.Post("/decode", func(ctx iris.Context) {
// Read https://github.com/kataras/iris/blob/master/_examples/http_request/read-json/main.go as well.
var user User
ctx.ReadJSON(&user)