mirror of
https://github.com/kataras/iris.git
synced 2026-02-11 21:25:56 +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:
@@ -1452,7 +1452,6 @@ func (ctx *context) Write(rawBody []byte) (int, error) {
|
||||
//
|
||||
// Returns the number of bytes written and any write error encountered.
|
||||
func (ctx *context) Writef(format string, a ...interface{}) (n int, err error) {
|
||||
ctx.ContentType(contentTextHeaderValue)
|
||||
return ctx.writer.Writef(format, a...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user