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

7 lines
75 B
Go
Raw Normal View History

2024-06-25 11:35:10 +02:00
package optional
type Optional[T any] struct {
Present bool
Value T
}