package main import "encoding/gob" func init() { gob.Register(&User{}) } // User 用户结构 type User struct { Expired int64 Name string ConfigPath string Config interface{} }