Versions in this module Expand all Collapse all v0 v0.7.0 Nov 21, 2026 Changes in this version + const MaxOlderThanDays + func Main(args []string, out, errOut io.Writer, api API) int + func RunFromCLI(args []string) + type API interface + CompactPad func(padID string, keep *int) error + GetLastEdited func(padID string) (int64, error) + GetRevisionsCount func(padID string) (int, error) + ListAllPads func() ([]string, error) + type HTTPAPI struct + APIKey string + BaseURL string + Client *http.Client + func (h *HTTPAPI) CompactPad(padID string, keep *int) error + func (h *HTTPAPI) GetLastEdited(padID string) (int64, error) + func (h *HTTPAPI) GetRevisionsCount(padID string) (int, error) + func (h *HTTPAPI) ListAllPads() ([]string, error) + type Options struct + DryRun bool + Keep *int + OlderThanDays int + Pads []string + type Report struct + Failed int + OK int + RevsAfter int + RevsBefore int + Selected int + SkippedFresh int + Total int + func Run(api API, opts Options, out, errOut io.Writer, now func() time.Time) Report