# 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/qezoxhq
Gorm scope 實現分頁**
Gorm 是一個非常棒的 ORM。今天,我將向您展示如何使用 Gorm Scopes 創建分頁。 Scopes 可以實現一些邏輯的複用,這些邏輯需要定義爲如下格式:func(gorm.DB) gorm.DB首先創建一個 Pagination 結構體:type Pagination struct { PageSize int json:"pageSize,omitempt ⌘ Read more