about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/structs.go22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/structs.go b/src/structs.go
index f376133..9715d4c 100644
--- a/src/structs.go
+++ b/src/structs.go
@@ -1,11 +1,17 @@
 package main
 
-type challenge struct {
-	name        string
-	description string
-	flag        string
-	container   string
-	category    string
-	points      int
-	static      bool
+// Challenge defines a challenge as in the original companion.json format
+type Challenge struct {
+	Name        string
+	Description string
+	Flag        string
+	Container   string
+	Category    string
+	Points      int
+	Static      bool
+}
+
+// Challenges defines a list of challenges.
+type Challenges struct {
+	Challenge []Challenge
 }