utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt added in v0.5.0

func BoolToInt(b bool) uint8

func OpenFileForWriting

func OpenFileForWriting(dir, filename string) (*os.File, error)

OpenFileForWriting opens a file for writing, creating the directory if it doesn't exist.

func RunCmd

func RunCmd(cmnd string, arg []string) ([]byte, []byte, error)

func RunCmdWithEnv

func RunCmdWithEnv(cmnd string, env string, arg []string) ([]byte, []byte, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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