diff --git a/basic/basic.go b/basic/basic.go new file mode 100644 index 0000000..6942abe --- /dev/null +++ b/basic/basic.go @@ -0,0 +1,2 @@ +// Package basic provides a basic representation of dosini-style documents +package basic diff --git a/basic/types.go b/basic/types.go new file mode 100644 index 0000000..daf61bd --- /dev/null +++ b/basic/types.go @@ -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 +}