# 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/6h2vahq
golang 中的互斥鎖和管道**
sync 包下的互斥鎖 場景:當多個協程對共享變量執行寫操作的時候就會發生資源競爭,需要用互斥鎖。 特點: 互斥鎖必須是全局的,即所有協程共用同一把互斥鎖 在需要寫出執行的代碼中對共享變量的寫操作加鎖。 package mainimport ( "fmt" "sync" "time")// 需求:現在要計算 1-200 的各個數的階乘,並且把各個數的階乘放 ⌘ Read more