Versions in this module Expand all Collapse all v0 v0.16.0 Nov 8, 2026 Changes in this version + var ErrAmbiguousMatch = errors.New("ambiguous patch block matched multiple locations") + var ErrInvalidFormat = errors.New("invalid patch format") + var ErrNoMatch = errors.New("patch block did not match file content") + type Block struct + Replace string + Search string + func Parse(raw string) ([]Block, error) + type Result struct + Blocks int + Content string + Fuzzy int + func Apply(content, rawPatch string) (Result, error)