Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Getenv ¶
Getenv gets the environ value or default used by the mog command line tool.
Types ¶
type Diff ¶
Diff describes whether Key was added or removed between mogs.
type DiffResult ¶
type DiffResult []Diff
DiffResult is the result of comparing two mogs.
func GetDiff ¶
func GetDiff(m1, m2 Mog) DiffResult
GetDiff computes the diff between the mogs. A diff is excluded from the result if the package name is not present in both m1 and m2.
func (DiffResult) Len ¶
func (d DiffResult) Len() int
func (DiffResult) Less ¶
func (d DiffResult) Less(i, j int) bool
func (DiffResult) Swap ¶
func (d DiffResult) Swap(i, j int)
type Key ¶
type Key struct { Name string `json:"-"` // path/to/package (case encoded) Version string `json:"Version"` // v0.0.0-MMDDYYhhmmss-shortsha1 }
Key contains name and version information needed to fully qualify a package.
Click to show internal directories.
Click to hide internal directories.