From deb225df06a35ba4b3d285ad7429f54fc37ceefb Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Mon, 1 Dec 2025 13:27:10 +0100 Subject: [PATCH] Update ref pkg Signed-off-by: Bryan Frimin --- e2e/console/framework_test.go | 2 +- e2e/console/measure_test.go | 2 +- pkg/ref/ref.go | 21 --------------------- 3 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 pkg/ref/ref.go diff --git a/e2e/console/framework_test.go b/e2e/console/framework_test.go index 5e5cb3b2e..2914881b2 100644 --- a/e2e/console/framework_test.go +++ b/e2e/console/framework_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/require" "go.probo.inc/probo/e2e/internal/factory" "go.probo.inc/probo/e2e/internal/testutil" - "go.probo.inc/probo/pkg/ref" + "go.gearno.de/x/ref" ) func TestFramework_Create(t *testing.T) { diff --git a/e2e/console/measure_test.go b/e2e/console/measure_test.go index 462ee0c5f..70b638b03 100644 --- a/e2e/console/measure_test.go +++ b/e2e/console/measure_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/require" "go.probo.inc/probo/e2e/internal/factory" "go.probo.inc/probo/e2e/internal/testutil" - "go.probo.inc/probo/pkg/ref" + "go.gearno.de/x/ref" ) func TestMeasure_Create(t *testing.T) { diff --git a/pkg/ref/ref.go b/pkg/ref/ref.go deleted file mode 100644 index 7f571b17f..000000000 --- a/pkg/ref/ref.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) 2025 Probo Inc . -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -// PERFORMANCE OF THIS SOFTWARE. - -// Package ref provides helper functions for working with pointers. -package ref - -// Ref returns a pointer to the given value. -func Ref[T any](v T) *T { - return &v -}