about summary refs log tree commit diff
path: root/src/structs.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-20 00:31:13 +0200
committerEmile <hanemile@protonmail.com>2019-10-20 00:31:13 +0200
commit4f4317f59150588482779ab3e6f78cb4269bcd67 (patch)
tree07b8c7e2d4b67ce672f21dfe6c2dc5697dfd58c8 /src/structs.go
parent027a5ee0fc896f5bbbe10bb2505a5942232ab995 (diff)
consistet naming for the db functions
Diffstat (limited to 'src/structs.go')
-rw-r--r--src/structs.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/structs.go b/src/structs.go
index 84fe6d9..9db5ab7 100644
--- a/src/structs.go
+++ b/src/structs.go
@@ -2,14 +2,14 @@ package main
 
 // Challenge defines a challenge as in the original companion.json format
 type Challenge struct {
-	UUID        string
-	Name        string
-	Description string
-	Flag        string
-	Container   string
-	Category    string
-	Points      int
-	Static      bool
+	UUID        string `json:"uuid"`
+	Name        string `json:"name"`
+	Description string `json:"description"`
+	Flag        string `json:"flag"`
+	Container   string `json:"container"`
+	Category    string `json:"category"`
+	Points      int    `json:"points"`
+	Static      bool   `json:"static"`
 }
 
 // Challenges defines a list of challenges.