diff

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package diff provides functionality to analyze updates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	Stargazers  int
	Subscribers int
	Forks       int
}

Diff holds the difference between the latest update and the previous one.

type Jar added in v0.0.2

type Jar struct {
	Diffs map[string]Diff
}

Jar holds a collection of Diff objects and information to notify the user.

func NewJar added in v0.0.2

func NewJar() *Jar

NewJar creates a new Jar given information to notify the user.

func (*Jar) Add added in v0.0.2

func (d *Jar) Add(name string, is *g.Repository, was *g.Repository)

Add adds a new Diff into the Jar if a difference in the latest update was detected.

func (*Jar) ComputeDiffs added in v0.0.3

func (d *Jar) ComputeDiffs(newRepos []*g.Repository, prevRepos map[string]g.Repository)

ComputeDiffs compares newRepos with prevRepos and populates Diffs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL