utils

package
v0.0.0-...-1afe7ff Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If[T any](cond bool, t, f T) T

func IfLazyL

func IfLazyL[T any](cond bool, t func() T, f T) T

func IfLazyR

func IfLazyR[T any](cond bool, t T, f func() T) T

func Map

func Map[T, U any](ts []T, f func(T) U) []U

func Positive

func Positive[T constraints.Integer](x T) T

func SkipMapToSlice

func SkipMapToSlice[K constraints.Ordered, V any](m rangeAble[K, V]) []V

func ToJSON

func ToJSON(v any) string

Types

This section is empty.

Directories

Path Synopsis
collections

Jump to

Keyboard shortcuts

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