osutil

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists added in v0.2.0

func DirExists(dir string) (bool, error)

func EnsureDir

func EnsureDir(dir string) error

func FileExists added in v0.2.0

func FileExists(dir string) (bool, error)

func WriteFile added in v0.2.0

func WriteFile(path string, data []byte) error

Types

type Env added in v0.2.0

type Env map[string]string

func (Env) Expand added in v0.2.0

func (env Env) Expand(s string) string

func (Env) SetCmd added in v0.2.0

func (env Env) SetCmd(cmd *exec.Cmd)

Jump to

Keyboard shortcuts

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