mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 03:26:30 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
32 lines
512 B
Go
32 lines
512 B
Go
// +build !binary_log
|
|
|
|
package zerolog
|
|
|
|
// encoder_json.go file contains bindings to generate
|
|
// JSON encoded byte stream.
|
|
|
|
import (
|
|
"github.com/rs/zerolog/internal/json"
|
|
)
|
|
|
|
var (
|
|
_ encoder = (*json.Encoder)(nil)
|
|
|
|
enc = json.Encoder{}
|
|
)
|
|
|
|
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
|
|
}
|