# 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/yuezpaa
Go 扒一扒 sort 工具包底層用的哪些排序算法?**
一、前言 平時工作中業務代碼中很多地方需要進行排序操作,go 標準庫中是提供了 sort 包是實現排序功能的,接下來來扒一扒 sort 的排序功能到底如何實現的?這裏先介紹 2 個概念:穩定排序和不穩定排序的區別, 如下:舉例:對一個數組進行排序,如果裏面有重複的數據,排完序時候,相同的數據的相對索引位置沒有發生改變,那麼就是穩定排序。也就是裏面有兩個 5,5。排完之後第一個 5 還在最前面,沒 ⌘ Read more