Change Request.Header.Get to GetHeader function (#290)
* Change Request.Header.Get to GetHeader function * update gin version Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * update gin version Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * update gin version Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
17
vendor/github.com/gin-gonic/gin/json/json.go
generated
vendored
Normal file
17
vendor/github.com/gin-gonic/gin/json/json.go
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2017 Bo-Yi Wu. All rights reserved.
|
||||
// Use of this source code is governed by a MIT style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !jsoniter
|
||||
|
||||
package json
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
var (
|
||||
Marshal = json.Marshal
|
||||
MarshalIndent = json.MarshalIndent
|
||||
NewDecoder = json.NewDecoder
|
||||
)
|
||||
18
vendor/github.com/gin-gonic/gin/json/jsoniter.go
generated
vendored
Normal file
18
vendor/github.com/gin-gonic/gin/json/jsoniter.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2017 Bo-Yi Wu. All rights reserved.
|
||||
// Use of this source code is governed by a MIT style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build jsoniter
|
||||
|
||||
package json
|
||||
|
||||
import (
|
||||
"github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var (
|
||||
json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
Marshal = json.Marshal
|
||||
MarshalIndent = json.MarshalIndent
|
||||
NewDecoder = json.NewDecoder
|
||||
)
|
||||
Reference in New Issue
Block a user