package
Version:
v2.2.21
Opens a new window with list of versions in this module.
Published: Feb 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package number provides Option-based utilities for number conversions.
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
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")
Source Files
¶
Click to show internal directories.
Click to hide internal directories.