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.
Click to show internal directories.
Click to hide internal directories.