func (p Parameters) validate() error {
	switch {
	case p.Logger == nil:
		return fmt.Errorf("log required")
	case p.Tokenizer == nil:
		return fmt.Errorf("tokenizer required")
	case p.UserDao == nil:
		return fmt.Errorf("user dao required")
	case p.Lobby == nil:
		return fmt.Errorf("lobby required")
	case p.StaticFS == nil:
		return fmt.Errorf("static file system required")
	case p.TemplateFS == nil:
		return fmt.Errorf("template file system required")
	}
	return nil
}
// validate ensures that all of the parameters are present.
validate ensures that all of the parameters are present.
// validate ensures that all of the parameters are present .
func (p Parameters) validate() error {
	switch {
	case p.Logger == nil:
		return fmt.Errorf("log required")
	case p.Tokenizer == nil:
		return fmt.Errorf("tokenizer required")
	case p.UserDao == nil:
		return fmt.Errorf("user dao required")
	case p.Lobby == nil:
		return fmt.Errorf("lobby required")
	case p.StaticFS == nil:
		return fmt.Errorf("static file system required")
	case p.TemplateFS == nil:
		return fmt.Errorf("template file system required")
	}
	return nil
}
func ( p Parameters ) validate ( ) error { switch { case p . Logger == nil : return fmt . Errorf ( " " ) case p . Tokenizer == nil : return fmt . Errorf ( " " ) case p . UserDao == nil : return fmt . Errorf ( " " ) case p . Lobby == nil : return fmt . Errorf ( " " ) case p . StaticFS == nil : return fmt . Errorf ( " " ) case p . TemplateFS == nil : return fmt . Errorf ( " " ) } return nil }
validate ensures that all of the parameters are present.
validate ensures that all of the parameters are present .