From 4f4317f59150588482779ab3e6f78cb4269bcd67 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 20 Oct 2019 00:31:13 +0200 Subject: consistet naming for the db functions --- src/structs.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/structs.go') 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. -- cgit 1.4.1