mo for Go
Represent choices, missing values and errors in typed Go programs.
samber · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/samber/mo at v1.17.0. Map a sample optional count and inspect the result when it is present.
What we tested
v1.17.0. Map a sample optional count and inspect the result when it is present. Doubled the present sample count and recovered six.