Versions in this module Expand all Collapse all v0 v0.3.1 Feb 16, 2024 Changes in this version + var ErrNoDiffer = errors.New("there is no differ set") + var ErrNoPackager = errors.New("there is no packager set") + type Differ interface + Diff func() (map[string]Directory, error) + DiffFiles func() (map[string]bool, error) + func NewFileDiffer(files []string) Differ + func NewGitDiffer(opts ...GitDifferOption) Differ + type Directory struct + Exists bool + Files []string + type GTA struct + func New(opts ...Option) (*GTA, error) + func (g *GTA) ChangedPackages() (*Packages, error) + type GitDifferOption func(*git) + func SetBaseBranch(baseBranch string) GitDifferOption + func SetUseMergeCommit(useMergeCommit bool) GitDifferOption + type Graph struct + func (g *Graph) Traverse(node string, mark map[string]bool) + type Option func(*GTA) error + func SetDiffer(d Differ) Option + func SetPackager(p Packager) Option + func SetPrefixes(prefixes ...string) Option + func SetTags(tags ...string) Option + type Package struct + Dir string + ImportPath string + type Packager interface + DependentGraph func() (*Graph, error) + EmbeddedBy func(string) []string + PackageFromDir func(string) (*Package, error) + PackageFromEmptyDir func(string) (*Package, error) + PackageFromImport func(string) (*Package, error) + func NewPackager(patterns, tags []string) Packager + type Packages struct + AllChanges []Package + Changes []Package + Dependencies map[string][]Package + func (p *Packages) MarshalJSON() ([]byte, error) + func (p *Packages) UnmarshalJSON(b []byte) error