Documentation
¶
Overview ¶
Package iniutils was translated from TMemIniFile in Delphi(2007) RTL, which loads an entire INI file into memory and allows all operations to be performed on the memory image. The image can then be written out to the disk file.
Index ¶
- Constants
- func IniDeleteIdent(fileName, section, ident string)
- func IniEraseSection(fileName, section string)
- func IniIdentExists(fileName, section, ident string) bool
- func IniReadInt(fileName, section, ident string, defaultValue int) int
- func IniReadSectionIdents(fileName, section string) []string
- func IniReadSectionValues(fileName, section string) []string
- func IniReadSections(fileName string) []string
- func IniReadString(fileName, section, ident, defaultValue string) string
- func IniSectionExists(fileName, section string) bool
- func IniWriteInt(fileName, section, ident string, value int)
- func IniWriteString(fileName, section, ident, value string)
- type IniFile
- func (ini *IniFile) CaseSensitive() bool
- func (ini *IniFile) Close()
- func (ini *IniFile) DeleteIdent(section, ident string)
- func (ini *IniFile) EraseSection(section string)
- func (ini *IniFile) FileName() string
- func (ini *IniFile) IdentExists(section, ident string) bool
- func (ini *IniFile) ReadBool(section, ident string, defaultValue bool) bool
- func (ini *IniFile) ReadFloat(section, ident string, defaultValue float64) float64
- func (ini *IniFile) ReadInt(section, ident string, defaultValue int) int
- func (ini *IniFile) ReadSectionIdents(section string) []string
- func (ini *IniFile) ReadSectionValues(section string) []string
- func (ini *IniFile) ReadSections() []string
- func (ini *IniFile) ReadString(section, ident, defaultValue string) string
- func (ini *IniFile) SectionExists(section string) bool
- func (ini *IniFile) String() string
- func (ini *IniFile) WriteBool(section, ident string, value bool)
- func (ini *IniFile) WriteFloat(section, ident string, value float64)
- func (ini *IniFile) WriteInt(section, ident string, value int)
- func (ini *IniFile) WriteString(section, ident, value string)
Constants ¶
View Source
const (
LineEndings = "\n" // OS-specific line endings
)
Variables ¶
This section is empty.
Functions ¶
func IniDeleteIdent ¶
func IniDeleteIdent(fileName, section, ident string)
func IniEraseSection ¶
func IniEraseSection(fileName, section string)
func IniIdentExists ¶
func IniReadInt ¶
func IniReadSectionIdents ¶
func IniReadSectionValues ¶
func IniReadSections ¶
func IniReadString ¶
func IniSectionExists ¶
func IniWriteInt ¶
func IniWriteString ¶
func IniWriteString(fileName, section, ident, value string)
Types ¶
type IniFile ¶
type IniFile struct {
// contains filtered or unexported fields
}
func NewIniFile ¶
func (*IniFile) CaseSensitive ¶
func (*IniFile) DeleteIdent ¶
func (*IniFile) EraseSection ¶
func (*IniFile) IdentExists ¶
func (*IniFile) ReadSectionIdents ¶
func (*IniFile) ReadSectionValues ¶
func (*IniFile) ReadSections ¶
func (*IniFile) ReadString ¶
func (*IniFile) SectionExists ¶
func (*IniFile) WriteFloat ¶
func (*IniFile) WriteString ¶
Click to show internal directories.
Click to hide internal directories.