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.
|
package gophp
|
|
|
|
import "dtapps/dta/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)
|
|
}
|