tools

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: BSD-3-Clause-LBNL Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy added in v0.4.5

func DeepCopy[T any](value T) (*T, error)

func GetUserConfirmation added in v0.4.5

func GetUserConfirmation(msg, error string, terminate bool) bool

GetUserConfirmation prompts user to confirm operation msg Message to prompt the user with validate returns true/false on success or terminates the process msg: prompt to display to the user asking for a response. error: error message to display if app should terminate terminate: when set to true will terminate the app user response is not valid.

func PtrOf

func PtrOf[T any](value T) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

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