syncdeps

package module
v0.0.0-...-161d135 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

README

syncdeps

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanFile

func ScanFile(r io.Reader) (map[string][]semver.Version, error)

func WriteGoMod

func WriteGoMod(w io.Writer, deps []Dependency) error

Types

type Dependency

type Dependency struct {
	Name    string         `json:"name"`
	Version semver.Version `json:"version"`
}

func Compare

func Compare(baseline, target map[string][]semver.Version) []Dependency

func (*Dependency) Read

func (dep *Dependency) Read(p []byte) (n int, err error)

func (*Dependency) Write

func (dep *Dependency) Write(p []byte) (n int, err error)

Directories

Path Synopsis
api
go
cmd

Jump to

Keyboard shortcuts

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