Documentation ¶
Index ¶
- func Marshal(obj interface{}) (out []byte, err error)
- func MustMarshal(obj interface{}) (out []byte)
- func MustReadFile(path string, obj interface{})
- func MustUnmarshal(data []byte, obj interface{})
- func MustWriteFile(path string, obj interface{})
- func NewNonBufDecode(r io.Reader) *gob.Decoder
- func ReadFile(path string, obj interface{}) (err error)
- func Unmarshal(data []byte, obj interface{}) (err error)
- func UrlBase64Marshal(obj interface{}) (out []byte, err error)
- func UrlBase64Unmarshal(data []byte, obj interface{}) (err error)
- func WriteFile(path string, obj interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMarshal ¶
func MustMarshal(obj interface{}) (out []byte)
func MustReadFile ¶
func MustReadFile(path string, obj interface{})
func MustUnmarshal ¶
func MustUnmarshal(data []byte, obj interface{})
func MustWriteFile ¶
func MustWriteFile(path string, obj interface{})
func NewNonBufDecode ¶
创建一个没有中间buf的gobDecode , 系统已有的gob.NewDecoder, 会在Reader不是一个ByteReader时, 使用bufio 进行读取, 根据 gob.NewDecoder 的代码显示 使用singleReader可以解决问题
func UrlBase64Marshal ¶
func UrlBase64Unmarshal ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.