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

@@ -12,5 +12,5 @@
<label>名稱:<input name="name" type="text"></label></br>
<input type="submit" value="新增記錄">
</form>
{{ template "scripts" .Scripts }}
{{ template "queries" .Queries }}
{{ end }}