Documentation
¶
Index ¶
Constants ¶
View Source
const ( WindowsLineEnd = "\r\n" LineEnd = '\n' CommentStart = ';' KeyValSep = "=" )
Constants for file parsing
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
Block type contains all the data that describes a block with comments omitted. Content variable represents the raw data inside a ini file block including the header. Data variable stores string key-value pairs for easy access.
func (*Block) AppendContent ¶
type INI ¶
INI type contains a map of blocks, raw data as a slice of bytes and data with comments trimmed as a slice of bytes
func NewINI ¶
Returns a pointer to unparsed INI struct Raw attribute should contain all the file contents as a byte slice once the INI is loaded call its Parse method to parse all the data in Raw attribute
Click to show internal directories.
Click to hide internal directories.