Documentation ¶
Overview ¶
Package file help read from/write to config file
Index ¶
- func Read(fname string, v interface{}, decoder encodeio.DecodeFunc) error
- func ReadGOB(fname string, v interface{}) error
- func ReadGZIP(fname string) (data []byte, err error)
- func ReadJSON(fname string, v interface{}) error
- func ReadProperties(fname string) (map[string]string, error)
- func ReadString(fname string) (s string, err error)
- func ReadXML(fname string, v interface{}) error
- type WriteMode
- func (m WriteMode) Write(fname string, v interface{}, encoder encodeio.EncodeFunc) error
- func (m WriteMode) WriteGOB(fname string, v interface{}) error
- func (m WriteMode) WriteGZIP(fname string, v interface{}) (err error)
- func (m WriteMode) WriteJSON(fname string, v interface{}) error
- func (m WriteMode) WriteString(fname, str string) (c int, err error)
- func (m WriteMode) WriteXML(fname string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadString ¶
Types ¶
type WriteMode ¶
type WriteMode bool
func (WriteMode) Write ¶
func (m WriteMode) Write(fname string, v interface{}, encoder encodeio.EncodeFunc) error
func (WriteMode) WriteString ¶
WriteString write string to writer
Click to show internal directories.
Click to hide internal directories.