Documentation ¶
Overview ¶
Package serialize 提供对 message 包的序列化操作
Index ¶
- func LoadFS(fsys fs.FS, name string, u UnmarshalFunc) (*message.File, error)
- func LoadFSGlob(s Search, glob string, fsys ...fs.FS) ([]*message.File, error)
- func LoadFile(path string, u UnmarshalFunc) (*message.File, error)
- func LoadGlob(s Search, glob string) ([]*message.File, error)
- func Marshal(l *message.File, f MarshalFunc) ([]byte, error)
- func SaveFile(l *message.File, path string, f MarshalFunc, mode fs.FileMode) error
- func Unmarshal(data []byte, u UnmarshalFunc) (*message.File, error)
- type MarshalFunc
- type Search
- type UnmarshalFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFSGlob ¶
LoadFSGlob 批量加载文件
Types ¶
type MarshalFunc ¶
type UnmarshalFunc ¶
Click to show internal directories.
Click to hide internal directories.