goutils

package
v2.4.1 Latest Latest
Warning

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

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

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

type Dependency

type Dependency struct {
	Name       string
	Version    string
	Scopes     []string
	FileType   string
	Checksum   *buildinfo.Checksum
	PathToRoot [][]string
}

func (*Dependency) GetPathToRoot

func (dep *Dependency) GetPathToRoot() [][]string

Jump to

Keyboard shortcuts

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