# 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/fyzx2xa
Go 錯誤處理新思路?用左側函數和表達式**
大家好,我是煎魚。錯誤處理一直是 Go 一個很有爭議的地方,大家在該類提案上貢獻了各種各樣的想法。在五一假期期間,我也發現了一個有趣的技術提案,那就是:左側函數;還有 Go+ 的新思路。今天就由煎魚帶大家一起來看看。Go 新提案:左側函數-----------在現有 Go1 的錯誤處理機制下,我們一般處理錯誤都需要寫大量的 if err != nil 的邏輯。有人笑稱 100 行裏有 50 行是以 ⌘ Read more
=