mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-11 18:14:15 +01:00
7 lines
132 B
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...)
|
||
|
}
|