util

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomString

func GenerateRandomString(n int) (string, error)

GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func RegisterCommandMock

func RegisterCommandMock(commandString string, output string)

func ResetCommandMocks

func ResetCommandMocks()

func RunWrappedCommand

func RunWrappedCommand(cmd *exec.Cmd) (output string, err error)

Types

This section is empty.

Directories

Path Synopsis
go_mysqldump
Create MYSQL dumps in Go without the 'mysqldump' CLI as a dependancy.
Create MYSQL dumps in Go without the 'mysqldump' CLI as a dependancy.

Jump to

Keyboard shortcuts

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