# 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/ldr4o3q
gin 框架中如何讓日誌文字帶顏色輸出?**
大家好,我是漁夫子。當我們在終端上(比如 Goland)運行 gin 框架搭建的服務時,會發現輸出的日誌是可以帶顏色的。比如下圖中的最後一行,就是請求一個方法時的輸出日誌:我們看到狀態碼 200 和請求的方法 GET 都帶有不同顏色的背景。那麼,這種帶顏色的日誌是如何實現的呢?一、gin 中控制日誌顏色-------------首先,在 gin 框架中提供了控制日誌文字是否帶顏色輸出的方法:Dis ⌘ Read more