package templates import ( "track-gopher/models" "fmt" "strconv" ) // RacePublic renders the public race view templ RacePublic(currentGroup models.Group, heats []models.Heat, racers []models.Racer, currentHeatNum int, results []models.HeatResult) { @LayoutPublic("Race - " + currentGroup.Name) {
Car #: { racer.CarNumber }
Weight: { fmt.Sprintf("%.1f oz", racer.CarWeight) }
| Lane | Racer | Car # |
|---|