From 2f2b1a4d2f8464f0847dac313198fc7ac4529a73 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 15 Oct 2025 21:00:04 -0400 Subject: [PATCH] Alias O function --- option.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/option.go b/option.go index 3f61c42..cc66aae 100644 --- a/option.go +++ b/option.go @@ -5,3 +5,7 @@ import "git.tebibyte.media/sashakoshka/go-util/container" // Option is an alias for ucontainer.Option, defined here for convenience 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) +}