# 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/x3fstsq
go channel 應用系列之控制協程數量**
大家好,我是漁夫子。今天給大家介紹一下如何利用 go 中的緩衝 channel 來控制協程的數量。如下示例:package mainimport ( "fmt" "sync/atomic")func main() { sem := make(chan struct{}, 10) var count int32 for { //time.Sleep(5\\*ti ⌘ Read more=*