From 2aa3476ef53b5eadfb89013660103ac3e6d69def Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 19 Oct 2019 17:26:54 +0200 Subject: exporting the struct fields for templating --- src/structs.go | 22 ++++++++++++++-------- 1 file 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 } -- cgit 1.4.1