# 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/l6pgrua
Go mistakes【譯】2-10 沒有意識到類型嵌入可能存在的問題**
2.10 沒有意識到類型嵌入可能存在的問題---------------------創建結構時,Go 提供了嵌入類型的選項。然而,如果我們不瞭解類型嵌入的所有影響,這有時可能會導致意想不到的行爲。在本節中,讓我們提醒我們如何嵌入類型,它帶來了什麼,以及可能的問題。在 Go 中,如果結構字段在沒有名稱的情況下聲明,則稱爲嵌入式結構字段。例如:type Foo struct { Bar} ⌘ Read more