utils

package
v0.0.0-...-a6b0214 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must[T any](v T, err error) T

Must takes any type of result and error. It panics if the error is non-nil. Otherwise, it returns the result.

func MustAtoInt

func MustAtoInt[T constraints.Integer](s string) T

MustAtoi converts a string to an integer. It panics if it fails.

func MustAtoi

func MustAtoi(s string) int

MustAtoi converts a string to an integer. It panics if it fails.

func MustNoErr

func MustNoErr(err error)

NoError panics if an error is present

Types

This section is empty.

Jump to

Keyboard shortcuts

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