utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(from any) (bool, error)

func BoolDefault

func BoolDefault(from any, d bool) bool

BoolDefault convert value to bool, it will return default value if convert failed.

func ContainsString

func ContainsString(s []string, v string) bool

ContainsString returns true if an string is present in a iteratee.

func Int

func Int(from any) (int, error)

func Int64

func Int64(from any) (int64, error)

func IntDefault

func IntDefault(from any, d int) int

IntDefault convert value to int, it will return default value if convert failed.

func IsBlank

func IsBlank(s string) bool

IsBlank checks if string is empty ("") or whitespace only.

Types

This section is empty.

Directories

Path Synopsis
internal/constraints
Package constraints defines a set of useful constraints to be used with type parameters.
Package constraints defines a set of useful constraints to be used with type parameters.
internal

Jump to

Keyboard shortcuts

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