wails/website/docs/reference
Anton Gilgur 7b8355a385
[v2] docs(menu): add imports and complete the example (post merge conflict) (#4742)
* [v2] docs(menu): add imports and complete the example (post merge conflict)

This partially redoes commit cb3305a2fc, as a merge conflict resolution seemed to have accidentally removed a large portion of the changes

- 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
  - also give this file the title `menu.go` for clarity / explicitness, particularly to differentiate from the `NewApp` / `app.go` scaffold
- 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
2025-12-01 19:16:00 +11:00
..
runtime Fix typos (#3628) 2024-08-20 19:22:43 +10:00
_category_.json [v2] Docs update 2021-09-27 19:35:30 +10:00
cli.mdx feat: Make Vite server timeout configurable (#4374) 2025-07-11 21:08:37 +10:00
menus.mdx [v2] docs(menu): add imports and complete the example (post merge conflict) (#4742) 2025-12-01 19:16:00 +11:00
options.mdx [V2] Add origin verification for bindings (#4480) 2025-08-13 08:50:23 +10:00
project-config.mdx Add support for build tags to the wails project schema and update pro… (#4439) 2025-07-25 20:38:40 +10:00