# 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/tdnmzva
一文告訴你當 module path 爲 main 時執行 go test 失敗的真正原因**
近期收到新加入 “Gopher 部落” 知識星球 [1] 的星友 “凌風” 的一個問題,內容如下:在一個目錄下,我編寫了a.go和atest.go,在go mod init main後執行go test,會報錯:could not import main( can not import "main")。我知道它的解決方法是改變包名。我的問題是:1. 難道無法對 main 包執行包內測試了麼。2. ⌘ Read more