inital commit
This commit is contained in:
11
typeutils/types.go
Normal file
11
typeutils/types.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package typeutils
|
||||
|
||||
type Optional[T any] struct {
|
||||
value T
|
||||
present bool
|
||||
}
|
||||
|
||||
type Result[T any] struct {
|
||||
value T
|
||||
err error
|
||||
}
|
||||
Reference in New Issue
Block a user