Versions in this module Expand all Collapse all v0 v0.0.2 Jun 8, 2026 v0.0.1 Jun 8, 2026 Changes in this version + func FormatJSON(r *Result, w io.Writer) error + func FormatMarkdown(r *Result, w io.Writer, opts FormatOpts) error + func FormatSARIF(r *Result, w io.Writer, opts FormatOpts) error + func FormatText(r *Result, w io.Writer, opts FormatOpts) error + func LoadBreakingRules(path string) (*model.BreakingRulesConfig, error) + func ParseGitSpec(arg string) (ref, path string, ok bool) + func ReadAtRef(repoRoot, ref, filePath string) ([]byte, error) + func ResolveArg(arg, repoRoot string) ([]byte, error) + type CompareOpts struct + BreakingRulesPath string + type FormatOpts struct + BreakingOnly bool + type Result struct + Changes *model.DocumentChanges + CompareErrs error + func Compare(original, updated []byte, opts CompareOpts) (*Result, error) + func (r *Result) TotalBreakingChanges() int + func (r *Result) TotalChanges() int