14 lines
211 B
Go
14 lines
211 B
Go
package server
|
|
|
|
import (
|
|
"artNet/models"
|
|
"fmt"
|
|
)
|
|
|
|
func (s *Server) Set(get models.Get) error {
|
|
if len(s.Driver.Bus) <= int(get.Bus) {
|
|
return fmt.Errorf("no bus number '%d' found", get.Bus)
|
|
}
|
|
return nil
|
|
}
|