wails/website/docs
Anton Gilgur cb3305a2fc
[v2] docs(menu): add imports and complete the example (#4727)
* [v2] docs(menu): add imports and complete the example

- the example was missing imports, which [confused a user](https://stackoverflow.com/q/79827619/3431180), particularly due to the `rt` import alias
  - plus there are a good number of imports too, which this makes explicit
- it also didn't mention that it built on top of the `NewApp` / `app.go` scaffold, so mention and link to that as well
  - it wasn't clear where `NewApp` came from without that
  - give this file the title `menu.go` for clarity / explicitness
- also handle the error at the end similar to [existing examples](4c464b3092/website/docs/guides/application-development.mdx (L54))

* add changelog entry per PR template

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-12-01 06:22:52 +11:00
..
appendix feat(website): sync documents and add content (#1215) 2022-03-06 16:18:02 +11:00
community add GameStacker to community showcase (#4724) 2025-11-22 14:44:00 +11:00
gettingstarted docs: Add Linux PATH Update Commands to Installation Guide (#4340) 2025-06-07 18:12:44 +10:00
guides [v2] docs(app-dev): fix inconsistent indentation (#4730) 2025-11-30 17:40:51 +11:00
reference [v2] docs(menu): add imports and complete the example (#4727) 2025-12-01 06:22:52 +11:00
tutorials [v2] Add -devtools production build flag (#2725) 2023-06-19 06:45:01 +10:00
howdoesitwork.mdx [v2] docs(how): fix inconsistent indentation (#4733) 2025-11-25 10:16:01 +00:00
introduction.mdx Remove link to expired varly.app domain 2024-03-24 17:27:24 +11:00