utils

package
v0.0.0-...-881013b Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(file, dest string) error

func GvmDir

func GvmDir() (string, error)

func Mkdir

func Mkdir(d string, e ...error) (string, error)

func Reverse

func Reverse[S ~[]E, E any](s S)

Types

type Env

type Env struct {
	Name  string
	Value string
}

type GvmEnv

type GvmEnv struct {
	Dir      string `env:"GVM_DIR"`
	DlMirror string `env:"GVM_DL_MIRROR"`
	NoColor  bool   `env:"GVM_NO_COLOR" `
}

func (*GvmEnv) Envs

func (e *GvmEnv) Envs() []Env

func (*GvmEnv) Init

func (e *GvmEnv) Init() error

Jump to

Keyboard shortcuts

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