refactor(Type)!: harmonize naming 1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package typeutils
|
||||
package Type
|
||||
|
||||
// Created to abstract over Is_some and Is_ok
|
||||
type ValueContainer interface {
|
||||
@@ -1,4 +1,4 @@
|
||||
package typeutils
|
||||
package Type
|
||||
|
||||
import "github.com/lbatuska/goutils/assert"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package typeutils
|
||||
package Type
|
||||
|
||||
import (
|
||||
"errors"
|
||||
@@ -1,4 +1,4 @@
|
||||
package typeutils
|
||||
package Type
|
||||
|
||||
type Optional[T any] struct {
|
||||
value T
|
||||
@@ -1,4 +1,4 @@
|
||||
package typeutils
|
||||
package Type
|
||||
|
||||
func Expect[T any](val Unwrappable[T], msg string) T {
|
||||
return val.Expect(msg)
|
||||
Reference in New Issue
Block a user