omitzero
:JSON 處理的福音**使用 omitempty 忽略 JSON 中的可選字段 (Go 1.24 之前)------------------------------------------當你有一個要轉換爲 JSON 的結構體時,你可能有一些字段是可選的。例如,我們採用以下結構體:type Response struct { ID string json:"id" // 其他字段省略 UpdatedA ⌘ Read more
# 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/ojgziva
omitzero
:JSON 處理的福音**