diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-04 20:19:37 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-04 20:19:37 -0600 |
commit | 02fccc8c29d6f638efee0302868242d805bd7711 (patch) | |
tree | ac0828229ec4e3cca23562e517530a0806160264 /pkg/btrfs/util.go | |
parent | 95f1e4c2010fe8fd2a5537904f99082afbd20bf6 (diff) |
Preserve padding
Diffstat (limited to 'pkg/btrfs/util.go')
-rw-r--r-- | pkg/btrfs/util.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/btrfs/util.go b/pkg/btrfs/util.go index 312ec75..671d6fc 100644 --- a/pkg/btrfs/util.go +++ b/pkg/btrfs/util.go @@ -19,3 +19,10 @@ func max[T constraints.Ordered](a, b T) T { } return b } + +func min[T constraints.Ordered](a, b T) T { + if a < b { + return a + } + return b +} |