incredible-go-core/pkg/container/optional/optional.go

7 lines
75 B
Go

package optional
type Optional[T any] struct {
Present bool
Value T
}