package strconv

import "internal/runtime/strconv"

Index

Functions

func Atoi

func Atoi(s string) (int, bool)

Atoi is like Atoi64 but for integers that fit into an int.

func Atoi32

func Atoi32(s string) (int32, bool)

Atoi32 is like Atoi but for integers that fit into an int32.

func Atoi64

func Atoi64(s string) (int64, bool)

Atoi64 parses an int64 from a string s. The bool result reports whether s is a number representable by a value of type int64.

Source Files

atoi.go

Version
v1.25.0-rc.1
Published
Jun 11, 2025
Platform
js/wasm
Imports
1 packages
Last checked
1 minute ago

Tools for package owners.