From 5627aaea2c15a6fa8cca202614119f72972be37f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 15 Jul 2022 14:36:47 -0600 Subject: tidy up --- lib/containers/optional.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/containers/optional.go (limited to 'lib/containers') diff --git a/lib/containers/optional.go b/lib/containers/optional.go new file mode 100644 index 0000000..3055308 --- /dev/null +++ b/lib/containers/optional.go @@ -0,0 +1,10 @@ +// Copyright (C) 2022 Luke Shumaker +// +// SPDX-License-Identifier: GPL-2.0-or-later + +package containers + +type Optional[T any] struct { + OK bool + Val T +} -- cgit v1.2.3-2-g168b