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.
go-library/utils/gophp/gophp.go

14 lines
298 B

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)
}