🔨 Rename 'IOption' to 'Option'

This commit is contained in:
2024-11-24 02:43:22 +04:00
parent c69c35bef4
commit 8d983b4313
2 changed files with 8 additions and 8 deletions

View File

@@ -6,10 +6,10 @@ import (
)
type NonNilConcrete interface {
~int | ~float64 | ~string | ~bool
~int | ~float64 | ~string | ~bool
}
type IOption[T NonNilConcrete] interface {
type Option[T NonNilConcrete] interface {
IsNone() bool
ValueOrErr() (*T, error)
ValueOr(def *T) *T