This lift takes at most 8 people. Write Board(people) to return nil if there's room, or the starter's ready-made error ErrTooMany if there are more than 8.
Board(5)→NoneBoard(10)→'too many people'func Board(people int) errorpackage main
import "errors"
var ErrTooMany = errors.New("too many people")
func Board(people int) error {
// your code here: more than 8 people? return ErrTooMany
return nil
}
Run tries the examples. When they look right, Submit.