code: func (g *Gui) DeleteView(name string) error {
  	for i, v := range g.views {
  		if v.name == name {
  			g.views = append(g.views[:i], g.views[i+1:]...)
  			return nil
  		}
  	}
  	return ErrUnknownView
  }
docs: // DeleteView deletes a view by name.