utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSliceElement

func DeleteSliceElement[E comparable](s []E, elem E) []E

func Int64ToUint64

func Int64ToUint64(i int64) (uint64, error)

Int64ToUint64 converts an int64 to an uint64 and returns an error if the value is negative.

func Uint64ToInt64

func Uint64ToInt64(u uint64) (int64, error)

Uint64ToInt64 converts a uint64 to an int64 and returns an error if the value is out of range.

func Zero

func Zero[E any]() E

Types

This section is empty.

Jump to

Keyboard shortcuts

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