Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result[T, E any] struct { // contains filtered or unexported fields }
func Map ¶
Example ¶
package main import ( "fmt" "codeberg.org/FedericoSchonborn/go-sandbox/result" "codeberg.org/FedericoSchonborn/go-sandbox/result/strconv" ) func main() { value := result.Map(strconv.Atoi("2"), func(i int) int { return i * 2 }) fmt.Println(value) }
Output: Ok(4)
Click to show internal directories.
Click to hide internal directories.