util

package
v1.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 4 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 IsSubPath added in v1.0.0

func IsSubPath(subPath, path string) (bool, error)

IsSubPath checks (lexically) if subPath is a subpath of path.

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