chore: Move private packages to internal (#1664)

This commit is contained in:
Jan-Otto Kröpke
2024-10-03 20:23:56 +02:00
committed by GitHub
parent bcfe6df24d
commit 5d95610c84
181 changed files with 1680 additions and 1867 deletions

19
internal/utils/utils.go Normal file
View File

@@ -0,0 +1,19 @@
//go:build windows
package utils
func MilliSecToSec(t float64) float64 {
return t / 1000
}
func BoolToFloat(b bool) float64 {
if b {
return 1.0
}
return 0.0
}
func ToPTR[t any](v t) *t {
return &v
}