# 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/bdmifbq
如何正確使用 go 中的 Context
大家好,我是漁夫子。今天跟大家聊聊 context 的設計機制及如何正確使用。01 爲什麼要引入 Contextcontext.Context 是 Go 中定義的一個接口類型,從 1.7 版本中開始引入。其主要作用是在一次請求經過的所有協程或函數間傳遞取消信號及共享數據,以達到父協程對子協程的管理和控制的目的。需要注意的是 context.Context 的作用範圍是一次請求的生命週期,即隨着請求 ⌘ Read more