gecko/utils/formatting/dump_bytes.go

15 lines
300 B
Go

// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package formatting
import (
"encoding/hex"
"strings"
)
// DumpBytes ...
type DumpBytes struct{ Bytes []byte }
func (db DumpBytes) String() string { return strings.TrimSpace(hex.Dump(db.Bytes)) }