util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClipboard

func InitClipboard() error

func Max

func Max[T constraints.Ordered](args ...T) T

Max returns the largest argument provided.

func Min

func Min[T constraints.Ordered](args ...T) T

Min returns the smallest argument provided.

func Ptr added in v0.2.0

func Ptr[T any](x T) *T

func SanitizeQuery

func SanitizeQuery(input string, defaultValue string) string

SanitizeQuery removes leading and trailing spaces from input string. If string is empty, uses default value.

func WriteClipboard

func WriteClipboard(data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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