goutils

package
v2.46.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArtifactoryRemoteRepoUrl added in v2.29.8

func GetArtifactoryRemoteRepoUrl(serverDetails *config.ServerDetails, repo string) (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 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