@@ -0,0 +1,2 @@
|
|||||||
|
// Package basic provides a basic representation of dosini-style documents
|
||||||
|
package basic
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package basic
|
||||||
|
|
||||||
|
// Document ...
|
||||||
|
type Document struct {
|
||||||
|
Global []Field
|
||||||
|
|
||||||
|
Sections []Section
|
||||||
|
}
|
||||||
|
|
||||||
|
// Section ...
|
||||||
|
type Section struct {
|
||||||
|
Name string
|
||||||
|
Key string
|
||||||
|
HadKey bool
|
||||||
|
|
||||||
|
Fields []Field
|
||||||
|
}
|
||||||
|
|
||||||
|
// Field ...
|
||||||
|
type Field struct {
|
||||||
|
Key string
|
||||||
|
Value string
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user