# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/kjc54wq
我給 gin 提交了一行代碼**
這篇文章記錄一次給 gin-gonic/gin[1] 提交了一行代碼的經歷,雖然沒什麼含金量,但是對我而言還是挺開心的哈哈。緣由事情是這樣的,gin 默認的 404 頁面返回的是 404 page not found ,我們項目中需要自定義該頁面進行跳轉,第一直覺肯定是 gin 會有相應的 API ,事實如此,gin 有一個 NoRoute 方法可以自定義 404 頁面的 handler ,它的源 ⌘ Read more