First commit with a very simple first function

This commit is contained in:
2025-10-01 23:18:27 +01:00
commit 02e77f41bd
3 changed files with 15 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// Package unitconv provides useful unit conversions
package unitconv
// MsToKph converts a float64 representing m/s to an int representing km/h
func MsToKph(v float32) int {
return int(3.6 * v)
}