# 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/mtms26q
如何用 Go 寫出優美的代碼 - Go 的設計模式【簡單工廠模式,抽象工廠模式】篇二**
大家好,我是追麾 (hui)。上一次分析完 Go 的設計模式第一篇,有同學後臺問一些設計原則的問題,這篇我們就來講一下設計的一些原則,然後再繼續設計模式的學習。下圖是本文提綱。關於程序設計有六大原則,具體原則如下,當然這個不是 Go 語言獨有的,而是所有的語言都有的。瞭解了每個程序設計原則的目的,並且運用到我們的程序中去,會讓我們的代碼可讀性高,更加優美,你也會更加愛上寫代碼。單一職責原則---- ⌘ Read more