Documentation ¶
Index ¶
- func IsBreaking(change Change) bool
- type API
- type APIChanges
- type Added
- type ArgumentChanged
- type Change
- type Const
- type DeclChange
- type DeclType
- type Field
- type FieldChanged
- type Func
- type Interface
- type Package
- type PackageChanges
- type PositionChanged
- type Removed
- type ResultChanged
- type Struct
- type TypeChanged
- type TypeDef
- type ValueChanged
- type Var
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBreaking ¶
Types ¶
type API ¶
type API []Package
API that is exposed on a project.
func ProjectAPI ¶
ProjectAPI returns the public API of the project at the given path.
type APIChanges ¶
type APIChanges []PackageChanges
func Diff ¶
func Diff(current, prev API) APIChanges
Diff computes the difference between two given public APIs.
type ArgumentChanged ¶
func (ArgumentChanged) String ¶
func (a ArgumentChanged) String() string
type DeclChange ¶
func NewDeclChange ¶
func NewDeclChange(name string, typ DeclType, changes ...Change) DeclChange
func (DeclChange) String ¶
func (d DeclChange) String() string
type FieldChanged ¶
func (FieldChanged) String ¶
func (f FieldChanged) String() string
type Package ¶
type Package struct { Name string Path string Vars []Var Consts []Const Funcs []Func Structs []Struct Interfaces []Interface Types []TypeDef }
Package with all its exposed members.
type PackageChanges ¶
func NewPackageChanges ¶
func NewPackageChanges(name, path string, changes ...Change) PackageChanges
type PositionChanged ¶
func (PositionChanged) String ¶
func (p PositionChanged) String() string
type ResultChanged ¶
func (ResultChanged) String ¶
func (r ResultChanged) String() string
type TypeChanged ¶
func (TypeChanged) String ¶
func (tc TypeChanged) String() string
type ValueChanged ¶
func (ValueChanged) String ¶
func (v ValueChanged) String() string
Click to show internal directories.
Click to hide internal directories.