# 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/hw3tjxq
「Go 工具箱」一個將非負整數轉換成唯一、無序 ID 的工具:hashids**
大家好,我是漁夫子。本號新推出「go 工具箱」系列,意在給大家分享使用 go 語言編寫的、實用的、好玩的工具。 今天給大家推薦的工具是 hashids。該工具可以將一個正整數轉換成長度較短、唯一且不連續的 ID 值。一般適用於生成用戶 ID,但又不想用有規律的 ID 的場景。 原理分析:將長字符串轉換成短字符串的本質是進制轉換。將小進制數往大進制數上轉換就會變短,將大進制數往小進制數上轉換就會 ⌘ Read more