util

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinPath added in v0.1.5

func JoinPath(paths ...string) string

JoinPath joins multiple path segments into a single path, ensuring proper formatting.

func Optional

func Optional[T any](defaultValue T, value ...T) T

Optional returns the first value from the provided values or the default value if no values are provided.

func PtrOf

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

PtrOf returns a pointer to the provided value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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