forked from gitea/gitea
1
0
Fork 0
gitea/vendor/github.com/pingcap/tidb/util/bytes/bytes.go

7 lines
132 B
Go

package bytes
// CloneBytes returns a deep copy of slice b.
func CloneBytes(b []byte) []byte {
return append([]byte(nil), b...)
}