# 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/6dxhuva
Go slice 內存泄露與垃圾回收**
【導讀】本文從一個實際線上問題出發,介紹了由 slice 引發的內存泄漏與其內存分配機制。最近項目開發中遇到一個問題:在程序中大量使用 golang slice 導致內存佔用暴漲。經過一番分析與定位最終解決了問題,把過程記錄下來與大家分析。問題現象-------程序正常運行中突然出現內存佔用飆升,使用 htop 命令查看,程序內存佔用排第一; 使用 free -m 命令查看,發現可用內存爲 ⌘ Read more