Documentation ¶
Index ¶
- Constants
- func FileSize(fp string) (int64, error)
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func IsExist(fp string) bool
- func Load(fname string, dec NewDecoder, x interface{}) error
- func LoadYAML(fname string, x interface{}) error
- func ReadLine(reader io.Reader, lineHandler func(string))
- func ReadLine2(reader io.Reader, lineHandler func(string))
- func Remove(path string) bool
- func Save(fname string, enc NewEncoder, x interface{}) error
- func SaveYAML(fname string, x interface{}) error
- type Decoder
- type Encoder
- type NewDecoder
- type NewEncoder
Constants ¶
View Source
const ( LN = '\n' LR = '\r' SLN = "\n" SLR = "\r" )
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(fname string, dec NewDecoder, x interface{}) error
func Save ¶
func Save(fname string, enc NewEncoder, x interface{}) error
Types ¶
type NewDecoder ¶
type NewEncoder ¶
Click to show internal directories.
Click to hide internal directories.