number

package
v2.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package number provides Option-based utilities for number conversions.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Atoi converts a string to an integer, returning Some(int) on success or None on failure.
	//
	// Example:
	//
	//	result := Atoi("42") // Some(42)
	//	result := Atoi("abc") // None
	//	result := Atoi("") // None
	Atoi = O.Optionize1(atoi)

	// Itoa converts an integer to a string, always returning Some(string).
	//
	// Example:
	//
	//	result := Itoa(42) // Some("42")
	//	result := Itoa(-10) // Some("-10")
	//	result := Itoa(0) // Some("0")
	Itoa = F.Flow2(strconv.Itoa, O.Of[string])
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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