# 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/uhs7gvq
golang 中的 slice 作爲函數參數時是值傳遞還是引用傳遞?**
大家好,我是漁夫子。今天有網友問通道和切片在賦值給另一個變量或作爲函數參數傳遞的時候是不是引用傳遞?因爲老師在講解的時候說是指針傳遞?先說結論:在 Go 語言中都是值傳遞,沒有引用傳遞。看看網友的提問:我們以 slice 爲例,來看一下:package mainimport ("fmt")func main() { a := make([]int, 10, 10) fmt.Println("a", ⌘ Read more
=