package utils func Tie[T any](ret bool, v1, v2 T) T { if ret { return v1 } return v2 }