common

package
v0.0.0-...-86fc13e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreStructsEqual

func AreStructsEqual(s1 any, s2 any) bool

AreStructsEqual reports whether s1 and s2 are (deeply) equal. Supports pointers. Returns false if s1 or s2 are not structs.

func CapitalizeFirstChar

func CapitalizeFirstChar(s string) string

CapitalizeFirstChar returns s with the first character capitalized.

func IsStringEmpty

func IsStringEmpty(s string) bool

IsStringEmpty reports whether s is empty. All-spaces are reported empty.

func IsStructEmpty

func IsStructEmpty(s any) bool

IsStructEmpty reports whether s is (deeply) empty. Supports pointers. Returns false if s is not a struct.

func WrapErrorf

func WrapErrorf(err error, format string, a ...any) error

WrapErrorf returns an error with the supplied format that wraps err. The supplied format is appended with ': %w', with %w as err.

Types

This section is empty.

Jump to

Keyboard shortcuts

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