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
|
// Created to abstract over Is_some and Is_ok
|
||||||
type ValueContainer interface {
|
type ValueContainer interface {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package typeutils
|
package Type
|
||||||
|
|
||||||
import "github.com/lbatuska/goutils/assert"
|
import "github.com/lbatuska/goutils/assert"
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package typeutils
|
package Type
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package typeutils
|
package Type
|
||||||
|
|
||||||
type Optional[T any] struct {
|
type Optional[T any] struct {
|
||||||
value T
|
value T
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package typeutils
|
package Type
|
||||||
|
|
||||||
func Expect[T any](val Unwrappable[T], msg string) T {
|
func Expect[T any](val Unwrappable[T], msg string) T {
|
||||||
return val.Expect(msg)
|
return val.Expect(msg)
|
||||||
Reference in New Issue
Block a user