Alias O function
This commit is contained in:
parent
899f98043f
commit
2f2b1a4d2f
@ -5,3 +5,7 @@ import "git.tebibyte.media/sashakoshka/go-util/container"
|
|||||||
// Option is an alias for ucontainer.Option, defined here for convenience
|
// Option is an alias for ucontainer.Option, defined here for convenience
|
||||||
type Option[T any] = ucontainer.Option[T]
|
type Option[T any] = ucontainer.Option[T]
|
||||||
|
|
||||||
|
// O is an alias for ucontainer.O, defined here for convenience
|
||||||
|
func O[T any](value T) Option[T] {
|
||||||
|
return ucontainer.O(value)
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user