Versions in this module Expand all Collapse all v1 v1.0.0 Aug 27, 2026 Changes in this version + type Applied struct + FixName string + Range source.Range + RuleID string + type ImportAction string + const ImportAdd + const ImportRemove + type ImportChange struct + Action ImportAction + Name string + Path string + type Options struct + AllowSuggestion bool + AllowUnsafe bool + Format glippyformat.Options + Validate func(*source.File) error + type Rejection struct + FixName string + Message string + Range source.Range + Reason RejectionReason + RuleID string + type RejectionReason string + const RejectionConflict + const RejectionInvalidRange + const RejectionInvalidSafety + const RejectionInvalidText + const RejectionMissingFix + const RejectionStaleSource + const RejectionSuggestion + const RejectionUnsafe + const RejectionValidation + type Result struct + Applied []Applied + Bytes []byte + ImportChanges []ImportChange + Rejected []Rejection + func Coordinate(file *source.File, selections []Selection, options Options) (Result, error) + type Selection struct + Diagnostic rules.Diagnostic + FixName string + func Select(diagnostics []rules.Diagnostic, options SelectionOptions) ([]Selection, error) + func SelectSafe(diagnostics []rules.Diagnostic) ([]Selection, error) + type SelectionOptions struct + AllowSafe bool + AllowSuggestion bool + AllowUnsafe bool + type Transaction struct + Result Result + Status WriteStatus + func CoordinateAndReplace(snapshot *filesystem.Snapshot, selections []Selection, options Options) (Transaction, error) + type WriteStatus string + const WriteCompleted + const WriteNotPerformed + const WritePossiblyCompleted