utils

package
v0.0.0-...-43a2b60 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy[T any](val T) T

func IsReady

func IsReady(Addr string) bool

func SafeDereference

func SafeDereference[T any](val *T) T

func ToPointer

func ToPointer[T any](val T) *T

func WriteStringToFile

func WriteStringToFile(content string, filepath string) error

Types

type CommandGroup

type CommandGroup struct {
	Message  string
	Commands []*cobra.Command
}

type CommandGroups

type CommandGroups []CommandGroup

func (CommandGroups) Add

func (g CommandGroups) Add(c *cobra.Command)

Jump to

Keyboard shortcuts

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