From da4df66f0b78783e5e3512974a3d86ae4258a355 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 29 Aug 2023 00:21:36 +0000 Subject: [PATCH] basic: WIP Signed-off-by: Alejandro Mery --- basic/basic.go | 2 ++ basic/types.go | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 basic/basic.go create mode 100644 basic/types.go 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 +}