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

🚌 next version preparation: new PreflightResult interface for hero handlers

Former-commit-id: ea2d7ab93889beaddfe269bd213d259d26df979f
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-03-02 10:07:44 +02:00
parent afd0f5caef
commit 5da8ff92f3
6 changed files with 90 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ It doesn't always contain the "best ways" but it does cover each important featu
## Running the examples
[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/bd489282b676e30de158)
<!-- [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.getpostman.com/collections/16e76a9528aba863e821) -->
1. Install the Go Programming Language, version 1.12+ from https://golang.org/dl.
2. [Install Iris](https://github.com/kataras/iris/wiki/installation)

View File

@@ -23,5 +23,5 @@ func handler(id int, in testInput) testOutput {
func main() {
app := iris.New()
app.HandleFunc(iris.MethodPost, "/{id:int}", handler)
app.Listen(":5000", iris.WithOptimizations)
app.Listen(":8080")
}