test: add go/controller.go source fixture
This commit is contained in:
5
go/controller.go
Normal file
5
go/controller.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package controller
|
||||
func SelectMode(sensor int) int {
|
||||
if sensor > 80 { return 2 }
|
||||
return 1
|
||||
}
|
||||
Reference in New Issue
Block a user