util

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 2 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 JoinURL added in v0.1.5

func JoinURL(base string, segments ...string) string

JoinURL joins the base URL with the provided segments, 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