diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-12-31 11:59:09 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:08 -0700 |
commit | b261c2a4f5f028c9d83cef208ccc7d829f841bad (patch) | |
tree | e5cd6b5705a8f7d99cc7f9dc7ec9d28035e6ef8f /lib/textui/tunable.go | |
parent | c971b863a0a1f9feb75f31657729db3a03da114c (diff) |
tree-wide: Annotate values that I might want to be tuning
Diffstat (limited to 'lib/textui/tunable.go')
-rw-r--r-- | lib/textui/tunable.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/textui/tunable.go b/lib/textui/tunable.go new file mode 100644 index 0000000..7e5f311 --- /dev/null +++ b/lib/textui/tunable.go @@ -0,0 +1,13 @@ +// Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com> +// +// SPDX-License-Identifier: GPL-2.0-or-later + +package textui + +// Tunable annotates a value as something that might want to be tuned +// as the program gets optimized. +// +// TODO(lukeshu): Have Tunable be runtime-configurable. +func Tunable[T any](x T) T { + return x +} |