asciigoat's INI parser
https://asciigoat.org/ini
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
472 B
25 lines
472 B
1 year ago
|
// Package basic provides a basic representation of dosini-style documents
|
||
|
package basic
|
||
|
|
||
|
// Document represents an INI-style document
|
||
|
type Document struct {
|
||
|
Global []Field
|
||
|
|
||
|
Sections []Section
|
||
|
}
|
||
|
|
||
|
// Section represents an INI-style section with optional GIT-style IDs
|
||
|
type Section struct {
|
||
|
Key string
|
||
|
ID string
|
||
|
EmptyID bool
|
||
|
|
||
|
Fields []Field
|
||
|
}
|
||
|
|
||
|
// Field represents a key = value entry in an INI-style document
|
||
|
type Field struct {
|
||
|
Key string
|
||
|
Value string
|
||
|
}
|