fastpastebin/vendor/github.com/rs/zerolog/encoder_json.go

33 lines
512 B
Go
Raw Normal View History

2018-04-30 18:42:17 +05:00
// +build !binary_log
package zerolog
// encoder_json.go file contains bindings to generate
// JSON encoded byte stream.
import (
"github.com/rs/zerolog/internal/json"
)
2019-03-07 07:56:50 +05:00
var (
_ encoder = (*json.Encoder)(nil)
2018-04-30 18:42:17 +05:00
2019-03-07 07:56:50 +05:00
enc = json.Encoder{}
)
2018-04-30 18:42:17 +05:00
func appendJSON(dst []byte, j []byte) []byte {
return append(dst, j...)
}
func decodeIfBinaryToString(in []byte) string {
return string(in)
}
func decodeObjectToStr(in []byte) string {
return string(in)
}
func decodeIfBinaryToBytes(in []byte) []byte {
return in
}