kmgGob

package
v0.0.0-...-05317bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(obj interface{}) (out []byte, err error)

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

func NewNonBufDecode(r io.Reader) *gob.Decoder

创建一个没有中间buf的gobDecode , 系统已有的gob.NewDecoder, 会在Reader不是一个ByteReader时, 使用bufio 进行读取, 根据 gob.NewDecoder 的代码显示 使用singleReader可以解决问题

func ReadFile

func ReadFile(path string, obj interface{}) (err error)

func Unmarshal

func Unmarshal(data []byte, obj interface{}) (err error)

func UrlBase64Marshal

func UrlBase64Marshal(obj interface{}) (out []byte, err error)

func UrlBase64Unmarshal

func UrlBase64Unmarshal(data []byte, obj interface{}) (err error)

func WriteFile

func WriteFile(path string, obj interface{}) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL