1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00
Former-commit-id: 0bc9c92c519edda9e04be8481e16fd2fdcfc74c0
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-25 13:04:36 +03:00
parent 3fa022738b
commit 836e641229
10 changed files with 151 additions and 3 deletions

View File

@@ -84,6 +84,10 @@ func main() {
ctx.YAML(ExampleYAML{Name: "Iris", ServerAddr: "localhost:8080"})
})
// app.Get("/protobuf", func(ctx iris.Context) {
// ctx.Protobuf(proto.Message)
// })
app.Get("/msgpack", func(ctx iris.Context) {
u := User{
Firstname: "John",