# 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/y2mvgmq
Go 讓消費速度更快**
可複用的生產消費邏輯 有時候我們從接口當中接受一批數據,想要它們在後臺運行,或者說同步執行效率更快;有時候從緩存或者隊列中消費數據,想要增加消費的速度;有時候跑一批數據,想要處理效率更高;那麼遇到這些場景,這一套生產消費模式就足以應對了,來看下代碼。代碼func ConsumeTask(ctx context.Context) {LOOP: var total int var success i ⌘ Read more