gomod

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Path    string
	Version string
}

Dependency describes module and its version

type Module

type Module struct {
	Name      string
	GoVersion string

	Require map[string]string
	Exclude map[string]string
	Replace map[string]Replacement
}

Module go.mod description

func Parse

func Parse(fileName string, input []byte) (*Module, error)

Parse parse input Go file

type RelativePath

type RelativePath string

RelativePath describes relative path replacement

type Replacement

type Replacement interface {
	// contains filtered or unexported methods
}

Replacement is type safe hack to deal with the lack of algebraic/variative typing in Go

Jump to

Keyboard shortcuts

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