Add build tag nomsgpack (#1852)

* add build tag nomsgpack

* Update copyright

* Update copyright
This commit is contained in:
Antoine GIRARD
2020-01-07 04:31:10 +01:00
committed by Bo-Yi Wu
parent b8a7b6d194
commit fd8a65b252
12 changed files with 228 additions and 69 deletions
+6
View File
@@ -2,6 +2,8 @@
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
// +build !nomsgpack
package render
import (
@@ -10,6 +12,10 @@ import (
"github.com/ugorji/go/codec"
)
var (
_ Render = MsgPack{}
)
// MsgPack contains the given interface object.
type MsgPack struct {
Data interface{}