🚧 More of fingerprinting
This commit is contained in:
parent
4c5c46a5f2
commit
c87dc5e04f
3 changed files with 89 additions and 6 deletions
|
|
@ -29,3 +29,10 @@ func HourMinSecToSeconds(time string) (float64, error) {
|
|||
dur, _ := t.ParseDuration(f)
|
||||
return dur.Seconds(), nil
|
||||
}
|
||||
|
||||
func Tern[V any](choice bool, one, two V) V {
|
||||
if choice {
|
||||
return one
|
||||
}
|
||||
return two
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue