test

package
v0.0.0-...-c23f332 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupOsArgs

func BackupOsArgs() func()

BackupOsArgs backs up os.Args and returns a function that restores os.Args that can be used with defer.

func BuildOsArgs

func BuildOsArgs(cliArgs map[string]interface{})

BuildOsArgs builds os.Args from a map of key-value pairs containing arguments.

func CreateCompressedFile

func CreateCompressedFile() string

CreateCompressedFile creates a valid compressed file in memory

func SetBoolP

func SetBoolP(p **bool, value bool) func()

SetBoolP sets a value for a boolean pointer and returns a function that restores the pointer to initial state that can be used with defer

func SetIntP

func SetIntP(p **int, value int) func()

SetIntP sets a value for an int pointer and returns a function that restores the pointer to initial state that can be used with defer

func SetStringP

func SetStringP(p **string, value string) func()

SetStringP sets a value for a string pointer and returns a function that restores the pointer to initial state that can be used with defer

Types

This section is empty.

Jump to

Keyboard shortcuts

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