Error handling / rename / ordered queries

1. error handling for all routes & models function
2. rename scripts -> queries
3. use [][2]string instead of map[string]string to provide ordered
   queries list
This commit is contained in:
Wancat
2022-11-17 17:50:55 +08:00
parent a6510b34a4
commit 0cdc6bec24
7 changed files with 48 additions and 39 deletions

View File

@@ -0,0 +1,8 @@
{{ define "queries" }}
<h3>快速查詢</h3>
<ul>
{{ range . }}
<li><a href="/query?query={{ index . 1 | urlquery }}">{{ index . 0 }}</a></li>
{{ end }}
</ul>
{{ end }}