blob: a1f98930d9ac94eb5312d338a8974f57510b185b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package main
type Challenge struct {
Name string
Description string
Flag string // this should never leave the server
Container string // this could, but is not required as well
Category string
}
type StrippedChallenge struct {
Name string `json:"name"`
Description string `json:"description"`
Category string `json:"category"`
}
func stripChallenge(c Challenge) (StrippedChallenge) {
return StrippedChallenge{
Name: c.Name,
Description: c.Description,
Category: c.Category,
}
}
|