mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 12:07:28 +00:00
replace ioutil with io package and other minor improvements
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"strings"
|
||||
@@ -324,7 +323,7 @@ func BenchmarkAccessLogAfterPrint(b *testing.B) {
|
||||
}
|
||||
|
||||
func benchmarkAccessLogAfter(b *testing.B, withLogStruct, async bool) {
|
||||
ac := New(ioutil.Discard)
|
||||
ac := New(io.Discard)
|
||||
ac.Clock = TClock(time.Time{})
|
||||
ac.BytesReceived = false
|
||||
ac.BytesReceivedBody = false
|
||||
|
||||
@@ -11,6 +11,7 @@ import (
|
||||
)
|
||||
|
||||
// Log represents the log data specifically for the accesslog middleware.
|
||||
//
|
||||
//easyjson:json
|
||||
type Log struct {
|
||||
// The AccessLog instance this Log was created of.
|
||||
|
||||
Reference in New Issue
Block a user