Trier data []Buckets
avant de render /documentation
This commit is contained in:
parent
3543cec4a9
commit
cb7368cf7f
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
"sort"
|
||||||
|
|
||||||
"embed"
|
"embed"
|
||||||
"html/template"
|
"html/template"
|
||||||
|
@ -351,6 +352,8 @@ func handleDocumentation(c echo.Context) error {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort.SliceStable(data, func(i, j int) bool { return data[i].Name < data[j].Name })
|
||||||
|
|
||||||
return c.Render(http.StatusOK, "documentation-html", data)
|
return c.Render(http.StatusOK, "documentation-html", data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue