Documentation
¶
Overview ¶
Package kv reads key value files.
Index ¶
Constants ¶
View Source
const ( TrimAllSpace = TrimLeadingSpace | TrimTailingSpace | TrimDelimLeftSpace | TrimDelimRightSpace TrimLeadingTailingSpace = TrimLeadingSpace | TrimTailingSpace )
Variables ¶
View Source
var ErrBadLine = errors.New("bad line")
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { // Delim is key value delimiter Delim byte // Comment, if not 0, is the comment character. Lines begin with the // Comment character are ignored. Comment byte // TrimSpace determines the behavior of trim space TrimSpace TrimSpaceFlag // contains filtered or unexported fields }
type TrimSpaceFlag ¶
type TrimSpaceFlag uint
const ( TrimLeadingSpace TrimSpaceFlag = 1 << iota TrimTailingSpace TrimDelimLeftSpace TrimDelimRightSpace )
Click to show internal directories.
Click to hide internal directories.