utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRelativeOrAbsolute

func ApplyRelativeOrAbsolute(input string, currentValue int32) (int32, error)

ApplyRelativeOrAbsolute accepts a string (input) that may contain a relative or absolute value, and a current value. It will return the new value after applying the relative or absolute value. If the string is a relative value, it will be applied to the current value If the string is an absolute value, it will become the new current value

func SlicesToAny

func SlicesToAny[T any](slices []T) []any

SlicesToAny converts a slice of any type to a slice of any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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