goutils

package
v2.23.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetModuleName

func GetModuleName(projectDir string) (string, error)

func GetProjectRoot

func GetProjectRoot() (string, error)

func LogGoVersion

func LogGoVersion() error

Types

type GoCmdConfig added in v2.7.4

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

func NewGoCmdConfig added in v2.7.4

func NewGoCmdConfig() (*GoCmdConfig, error)

func (*GoCmdConfig) GetCmd added in v2.7.4

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

func (*GoCmdConfig) GetEnv added in v2.7.4

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

func (*GoCmdConfig) GetErrWriter added in v2.7.4

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

func (*GoCmdConfig) GetStdWriter added in v2.7.4

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

Jump to

Keyboard shortcuts

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