# 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/4fnkama
Go 設計模式 -- 訪客模式**
訪客模式也叫訪問者模式(Visitor Pattern)是一種將數據結構對象與數據操作分離的設計模式,可以在不改變數據結構對象類結構的前提下定義作用於這些對象的新的操作, 屬於行爲型設計模式。訪問者模式主要適用於以下應用場景:數據結構穩定,作用於數據結構的操作經常變化的場景。 需要數據結構與數據操作分離的場景。 需要對不同數據類型(元素)進行操作,而不使用分支判斷具體類型的場景。 ⌘ Read more