You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
298 B
14 lines
298 B
3 years ago
|
package gophp
|
||
|
|
||
|
import "github.com/dtapps/go-library/utils/gophp/serialize"
|
||
|
|
||
|
// Serialize 序列
|
||
|
func Serialize(value interface{}) ([]byte, error) {
|
||
|
return serialize.Marshal(value)
|
||
|
}
|
||
|
|
||
|
// Unserialize 反序列
|
||
|
func Unserialize(data []byte) (interface{}, error) {
|
||
|
return serialize.UnMarshal(data)
|
||
|
}
|