mod

package module
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

README

mod - Module support for Go/Go+

Build Status Go Report Card GitHub release Coverage Status GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOMOD

func GOMOD(dir string) (file string, err error)

GOMOD checks the modfile (go.mod) in this dir or its ancestors.

func GOPMOD

func GOPMOD(dir string, mode Mode) (file string, err error)

GOPMOD checks the modfile in this dir or its ancestors. If mode == 0, it checks both gop.mod and go.mod If mode == GoModOnly, it checks go.mod If mode == GopModOnly, it checks gop.mod

Types

type Mode added in v0.9.1

type Mode int
const (
	GoModOnly  Mode = 1
	GopModOnly Mode = 2
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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