Documentation
¶
Index ¶
- func CodecDecode(sData string, tData interface{}) error
- func CodecEncode(data interface{}) []byte
- func FromGOB64(str string, tData interface{}) error
- func RestoreFromFile(filepath string, data interface{}) error
- func SaveToFile(filepath string, data interface{}) error
- func ToGOB64(data interface{}) (string, error)
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodecDecode ¶
CodecDecode is decoder using github.com/ugorji/go/codec
func CodecEncode ¶
func CodecEncode(data interface{}) []byte
CodecEncode is encoder using github.com/ugorji/go/codec
func RestoreFromFile ¶
RestoreFromFile is to restore data from file
func SaveToFile ¶
SaveToFile is to save object to file. data should be pointer.
Types ¶
type Vector ¶
type Vector struct {
// contains filtered or unexported fields
}
Vector is vector
func (Vector) MarshalBinarys ¶
MarshalBinarys is to marshal binary
func (*Vector) UnmarshalBinarys ¶
UnmarshalBinarys is to modifie the receiver so it must take a pointer receiver.
Click to show internal directories.
Click to hide internal directories.