mirror of
https://github.com/pyihe/go-pkg.git
synced 2025-10-06 16:36:50 +08:00
fix
This commit is contained in:
@@ -7,6 +7,14 @@ import (
|
||||
"github.com/pyihe/go-pkg/errors"
|
||||
)
|
||||
|
||||
func Copy(src []byte) (b []byte) {
|
||||
if len(src) > 0 {
|
||||
b = make([]byte, len(src))
|
||||
copy(b, src)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func Int64(b []byte) (v int64, err error) {
|
||||
if len(b) == 0 {
|
||||
return
|
||||
|
Reference in New Issue
Block a user