# 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/5ch5txq
golang 使用 Zap 日誌庫**
簡要說明-------zap 是 uber 開源的 Go 高性能日誌庫,支持不同的日誌級別, 能夠打印基本信息等,但不支持日誌的分割,這裏我們可以使用 lumberjack 也是 zap 官方推薦用於日誌分割,結合這兩個庫我們就可以實現以下功能的日誌機制:能夠將事件記錄到文件中,而不是應用程序控制臺; 日誌切割能夠根據文件大小、時間或間隔等來切割日誌文件; 支持不同的日誌級別, ⌘ Read more