Add markets widget link templates & automatic name

This commit is contained in:
Svilen Markov
2025-01-12 04:21:47 +00:00
parent 260bc15577
commit 5723fbdea5
3 changed files with 55 additions and 10 deletions
+8
View File
@@ -178,3 +178,11 @@ func itemAtIndexOrDefault[T any](items []T, index int, def T) T {
return items[index]
}
func ternary[T any](condition bool, a, b T) T {
if condition {
return a
}
return b
}