Fixed code formatting and import order using goimports (#167)
This commit is contained in:
parent
77a1695358
commit
42d101e9f7
|
@ -24,9 +24,9 @@ func (Encoder) AppendEndMarker(dst []byte) []byte {
|
||||||
|
|
||||||
// AppendObjectData takes an object in form of a byte array and appends to dst.
|
// AppendObjectData takes an object in form of a byte array and appends to dst.
|
||||||
func (Encoder) AppendObjectData(dst []byte, o []byte) []byte {
|
func (Encoder) AppendObjectData(dst []byte, o []byte) []byte {
|
||||||
// BeginMarker is present in the dst, which
|
// BeginMarker is present in the dst, which
|
||||||
// should not be copied when appending to existing data.
|
// should not be copied when appending to existing data.
|
||||||
return append(dst, o[1:]...)
|
return append(dst, o[1:]...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppendArrayStart adds markers to indicate the start of an array.
|
// AppendArrayStart adds markers to indicate the start of an array.
|
||||||
|
|
|
@ -20,11 +20,12 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/coreos/go-systemd/journal"
|
"github.com/coreos/go-systemd/journal"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/internal/cbor"
|
"github.com/rs/zerolog/internal/cbor"
|
||||||
"io"
|
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultJournalDPrio = journal.PriNotice
|
const defaultJournalDPrio = journal.PriNotice
|
||||||
|
|
Loading…
Reference in New Issue