diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-15 14:36:47 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-15 15:51:32 -0600 |
commit | 5627aaea2c15a6fa8cca202614119f72972be37f (patch) | |
tree | 45e6199cb43fc0e64ca7714872cffd86a37d4959 /lib/containers/optional.go | |
parent | d9cb7963948cfb1d705c35653f5237a5e8fee3f3 (diff) |
tidy up
Diffstat (limited to 'lib/containers/optional.go')
-rw-r--r-- | lib/containers/optional.go | 10 |
1 files changed, 10 insertions, 0 deletions
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 <lukeshu@lukeshu.com> +// +// SPDX-License-Identifier: GPL-2.0-or-later + +package containers + +type Optional[T any] struct { + OK bool + Val T +} |