12 lines
124 B
Go
12 lines
124 B
Go
package Type
|
|
|
|
type Optional[T any] struct {
|
|
value T
|
|
present bool
|
|
}
|
|
|
|
type Result[T any] struct {
|
|
value T
|
|
err error
|
|
}
|