util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoBinaryPath

func GetGoBinaryPath(binaryName string) (string, error)

GetGoBinaryPath looks for the given binary in path, if not checks if it's in $GOPATH/bin

func GetGoPath

func GetGoPath() string

GetGoPath returns the go path

func GetPackagePaths

func GetPackagePaths(path string) ([]string, error)

GetPackagePaths gets the go paths for various checks

func GetPackagePathsWithExcludes

func GetPackagePathsWithExcludes(path string, excludes ...string) ([]string, error)

GetPackagePathsWithExcludes returns the package paths gotten by go list minus the dirs excluded

func GetProjectFileDirectories

func GetProjectFileDirectories(paths []string) ([]string, error)

GetProjectFileDirectories returns all the project directories excluding git and vendor

func GoLintExcludes

func GoLintExcludes() []string

GoLintExcludes returns commonly excluded dirs from quality checks

func IsPathExcluded

func IsPathExcluded(paths []string, path string) bool

IsPathExcluded determines if the provided path is excluded from common searches

Types

This section is empty.

Jump to

Keyboard shortcuts

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