From 1a4bc65ab34f85106d2f4d692c9ad6cb421ec340 Mon Sep 17 00:00:00 2001 From: gilang-as Date: Wed, 8 Nov 2023 17:23:15 +0700 Subject: [PATCH] Update comparable type to any --- nill.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nill.go b/nill.go index 3f42f54..02f7f81 100644 --- a/nill.go +++ b/nill.go @@ -1,10 +1,10 @@ package nill -type Type[T comparable] struct { +type Type[T any] struct { Valid bool Value T } -func New[T comparable](value T) Type[T] { +func New[T any](value T) Type[T] { return Type[T]{Valid: true, Value: value} }