13 lines
245 B
Go
13 lines
245 B
Go
package schalter
|
|
|
|
import "fmt"
|
|
|
|
func (s *Schalter) stateString() string {
|
|
if s.state {
|
|
return fmt.Sprintf("%s is open", s.spaceName)
|
|
}
|
|
return fmt.Sprintf("%s is closed", s.spaceName)
|
|
}
|
|
func (s *Schalter) fetchState() bool {
|
|
return false
|
|
}
|