test: add go/controller.go source fixture

This commit is contained in:
2026-09-25 11:05:36 +08:00
parent aeec331e0a
commit a477f8f0fe

5
go/controller.go Normal file
View File

@@ -0,0 +1,5 @@
package controller
func SelectMode(sensor int) int {
if sensor > 80 { return 2 }
return 1
}