+stores readable
This commit is contained in:
parent
c6ff2f1110
commit
2b694290f2
8 changed files with 100 additions and 81 deletions
|
@ -17,7 +17,7 @@ type Surfer struct {
|
|||
}
|
||||
|
||||
type Heat struct {
|
||||
Name string `json:"name"`
|
||||
Round string `json:"round"`
|
||||
Category string `json:"category"`
|
||||
Number int `json:"number"`
|
||||
Timer int `json:"timer"`
|
||||
|
@ -26,7 +26,7 @@ type Heat struct {
|
|||
}
|
||||
|
||||
func heatName(heat Heat) string {
|
||||
str := fmt.Sprintf("%s.%d.%s", heat.Name, heat.Number, heat.Category)
|
||||
str := fmt.Sprintf("%s.%d.%s", heat.Round, heat.Number, heat.Category)
|
||||
strings.ReplaceAll(str, " ", "_")
|
||||
return str
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue