stringutils

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

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(s string) int

Atoi converts a string to an integer If the string cannot be converted, it panics

func IsDigit

func IsDigit(r rune) bool

IsDigit returns true if the string is a digit and false otherwise

func IsEmpty

func IsEmpty(s string) bool

IsEmpty returns true if the string is empty and false otherwise

func IsInteger

func IsInteger(s string) bool

IsInteger returns true if the string is an integer and false otherwise

func Itoa

func Itoa(i int) string

Itoa converts an integer to a string

func RuneToInt

func RuneToInt(r rune) int

RuneToInt converts a rune to an integer If the rune is not a digit, it panics

func StringToBool

func StringToBool(s string) bool

StringToBool converts a string to a boolean If the string cannot be converted, it panics

Types

This section is empty.

Jump to

Keyboard shortcuts

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