goutils

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCachePath

func GetCachePath() (string, error)

func GetDependenciesGraph

func GetDependenciesGraph(projectDir string) (map[string][]string, error)

func GetDependenciesList

func GetDependenciesList(projectDir string) (map[string]bool, error)

func GetGoModCachePath

func GetGoModCachePath() (string, error)

func GetGoVersion

func GetGoVersion() (string, error)

func GetModuleName

func GetModuleName(projectDir string) (string, error)

func GetProjectRoot

func GetProjectRoot() (string, error)

func LogGoVersion

func LogGoVersion() error

Types

type Cmd

type Cmd struct {
	Go           string
	Command      []string
	CommandFlags []string
	Dir          string
	StrWriter    io.WriteCloser
	ErrWriter    io.WriteCloser
}

func (*Cmd) GetCmd

func (config *Cmd) GetCmd() (cmd *exec.Cmd)

func (*Cmd) GetEnv

func (config *Cmd) GetEnv() map[string]string

func (*Cmd) GetErrWriter

func (config *Cmd) GetErrWriter() io.WriteCloser

func (*Cmd) GetStdWriter

func (config *Cmd) GetStdWriter() io.WriteCloser

Jump to

Keyboard shortcuts

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