# 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/nje27wq
用 Go 請求接口不執行 body-Close-- 會內存溢出嗎?這次告訴你真相!**
golang 的net/http庫是我們平時寫代碼中,非常常用的標準庫。由於 go 語言擁有 goroutine,goroutine 的上下文切換成本比普通線程低很多,net/http 庫充分利用了這個優勢,因此,它的內部實現跟其他語言會有一些區別。其中最大的區別在於,其他語言中,一般是多個網絡句柄共用一個或多個線程,以此來減少線程之間的切換成本。而 golang 則會爲每個網絡句柄創建兩個 go ⌘ Read more