util

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

func GetGoPath added in v0.4.0

func GetGoPath() string

GetGoPath determines the GOPATH location.

func GetModuleCacheDir added in v0.4.0

func GetModuleCacheDir() string

GetModuleCacheDir determines the location of Go's module cache.

func IsGoModule

func IsGoModule(path string) bool

IsGoModule determines whether the directory at the given path is a Go module.

func IsVendoring added in v0.4.0

func IsVendoring(path string) bool

IsVendoring determines whether of not the module at the given path is vendoring its dependencies. Should be used in conjunction with IsGoModule.

func StringSliceIndex added in v0.4.0

func StringSliceIndex(haystack []string, needle string) int

StringSliceIndex determines the index of a given string in a given string slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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