tools: Index | Files

package apidiff

import ""


Package Files

apidiff.go compatibility.go correspondence.go messageset.go report.go

type Change Uses

type Change struct {
    Message    string
    Compatible bool

A Change describes a single API change.

type Report Uses

type Report struct {
    Changes []Change

Report describes the changes detected by Changes.

func Changes Uses

func Changes(old, new *types.Package) Report

Changes reports on the differences between the APIs of the old and new packages. It classifies each difference as either compatible or incompatible (breaking.) For a detailed discussion of what constitutes an incompatible change, see the package documentation.

func (Report) String Uses

func (r Report) String() string

func (Report) Text Uses

func (r Report) Text(w io.Writer) error

func (Report) TextCompatible Uses

func (r Report) TextCompatible(w io.Writer) error

func (Report) TextIncompatible Uses

func (r Report) TextIncompatible(w io.Writer, withHeader bool) error

Package apidiff imports 9 packages (graph). Updated 2021-01-23. Refresh now. Tools for package owners.