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

.NET Core vs Iris MVC vs Iris (classic API with Handlers)

No need to format using Writef on benchmarks for a simple string value without dynamic text, just use the WriteString which is the correct function for these apps.


Former-commit-id: 896ec514570d533d8da91af3ad199fc4f823fe74
This commit is contained in:
kataras
2017-08-19 07:11:30 +03:00
parent ca4c66d5b4
commit 151e38d5c8
8 changed files with 32 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ type ValuesController struct {
// Get handles "GET" requests to "api/values/{id}".
func (vc *ValuesController) Get() {
// id,_ := vc.Params.GetInt("id")
vc.Ctx.Writef("value")
vc.Ctx.WriteString("value")
}
// Put handles "PUT" requests to "api/values/{id}".