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 committed 2022-11-17 17:50:55 +08:00
1 parent a6510b34a4
commit 0cdc6bec24
7 files changed
+48 -39

No files matched your search

+8
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 }}