eitherparse

package
v0.0.0-...-83fde48 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package eitherparse provides functions to parse strings into various types, returning Either[error, T] to handle parsing errors gracefully.

Index

Constants

This section is empty.

Variables

View Source
var ParseInt = F.Flow2(
	E.Eitherize1(strconv.Atoi),
	E.MapLeft[int](fperrors.OnError("failed to parse int")),
)

ParseInt converts a string to an int, returning Either[error, int]. On failure the left contains an error prefixed with "failed to parse int".

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