The goal of this experiment is to try and implement the minimum requirements for the existence of a generic-style Option
type in Go, similar to what we know from other languages, such as Java or Rust.
Provide a fluent approach to error handling in Go which focuses on highlighting the "happy path", while being 100% idiomatic with Go's error handling convention.
NOTE: The core type is an interface called Option
, having a single requirement: