mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +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:
@@ -18,7 +18,7 @@ func main() {
|
||||
// getHandler handles "GET" requests to "api/values/{id}".
|
||||
func getHandler(ctx context.Context) {
|
||||
// id,_ := vc.Params.GetInt("id")
|
||||
ctx.Writef("value")
|
||||
ctx.WriteString("value")
|
||||
}
|
||||
|
||||
// putHandler handles "PUT" requests to "api/values/{id}".
|
||||
|
||||
Reference in New Issue
Block a user