# 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/pvalqbq
關於用 Go 實現堆和堆操作,可能是最通俗易懂的講解了**
堆是一種樹形數據結構,分爲大頂堆和小頂堆,顧名思義,大頂堆就是堆頂(第一個元素)始終存放的是這組元素中的最大元素,小頂堆就是堆頂元素是最小元素。如果需要從一組對象中查找最大值或最小值,使用堆能夠高效率的完成需求。排序算法中的堆排序正是利用了堆這一數據完成的排序,堆在實際應用中主要被用於實現優先隊列(priority queue)下面我們以小頂堆爲例學習一下堆的結構和常規操作。堆的特性----小頂堆 ⌘ Read more