gomod

package
v0.0.0-...-6fd8692 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(version modfile.File, ancestor modfile.File) modfile.File

Diff compares two modfile.File structs and returns the changes between them. It checks for differences in the require, exclude, and replace statements.

func Merge

func Merge(current, other, ancestor modfile.File) modfile.File

Merge merges the changes between the current and other go.mod files into the common ancestor go.mod file.

func Parse

func Parse(filename string) (*modfile.File, error)

Parse parses the contents of a go.mod file and returns a modfile.File object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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