From f610a2202cb8c15215bafe8e18c794625f702275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 2 Jun 2023 09:44:31 +0200 Subject: [PATCH] v0.0.128 --- Makefile | 4 +++- langext/pointer.go | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1f9feaf..cb52685 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,9 @@ run: echo "This is a library - can't be run" && false test: - go test ./... + # go test ./... + which gotestsum || go install gotest.tools/gotestsum@latest + gotestsum --format "testname" -- -tags="timetzdata sqlite_fts5 sqlite_foreign_keys" "./test" version: _data/version.sh \ No newline at end of file diff --git a/langext/pointer.go b/langext/pointer.go index 097218f..70f5d34 100644 --- a/langext/pointer.go +++ b/langext/pointer.go @@ -4,6 +4,12 @@ import ( "reflect" ) +// PTrue := &true +var PTrue = Ptr(true) + +// PFalse := &false +var PFalse = Ptr(false) + func Ptr[T any](v T) *T { return &v }