utils

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package utils provides small, dependency-free helpers: generic pointer coalescing plus environment-variable and disk-space utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coalesce

func Coalesce[T any](ptrs ...*T) *T

func CoalesceVal

func CoalesceVal[T any](def T, ptrs ...*T) T

func GetAvailableDiskStorageInMB

func GetAvailableDiskStorageInMB(path string) (int, error)

func GetEnvInt

func GetEnvInt(key string, defaultValue int) (int, error)

func GetEnvString

func GetEnvString(key, defaultValue string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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