awesome-gocui / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
350 stars 39 forks source link

Setting empty view name panics #130

Open RamiAwar opened 8 months ago

RamiAwar commented 8 months ago

Describe the bug Setting an empty string view name leads to a panic.

I'm thinking maybe we can handle it more gracefully or at least have a more descriptive panic. Thoughts?

To Reproduce Steps to reproduce the behavior:

  1. Set an empty string as a view name.
  2. See error

Environment (please complete the following information):