# 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/tqfeula
Go 每日一庫之文件類型鑑別利器 filetype
大家好,我是站長 polarisxu。上次介紹了標準庫中的文件類型檢測方法,有不少人提到它很不準。的確如此。本期介紹一個更好、更準的第三方庫。filetype(https://github.com/h2non/filetype)是一個 Go 語言的第三方庫,可以根據文件的魔數(magic numbers)簽名來推斷文件的類型和 MIME 類型。它支持多種常見的文件類型,包括圖片、視頻、音頻、文檔、 ⌘ Read more