Modernize for Go 1.26 (#232)

This change replaces all uses of pointer utils with the new `new`
function which does the same job.

Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
Philip Laine
2026-05-05 13:53:44 +02:00
committed by GitHub
parent 69afe3aade
commit ea9f1cb081
14 changed files with 71 additions and 88 deletions
-8
View File
@@ -1,8 +0,0 @@
// SPDX-License-Identifier: BSD-3-Clause
package util
// Ptr return pointer to any value for API purposes
func Ptr[T any, PT *T](x T) PT {
return &x
}