mirror of
https://github.com/rivo/tview.git
synced 2026-04-28 06:15:59 +03:00
[GH-ISSUE #582] How to do button handling in forms? #426
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#426
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kudoakiyama on GitHub (Mar 21, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/582
I have this code
but it gives out an error because it doesn't know where
formis. I'm actually new to how Go works with methods anonymous functions so please bear with me here. Thank you.Edit: added the error message.
@rivo commented on GitHub (Apr 26, 2021):
This is the way closures work in Go. The variable is not yet known to functions on the same line. (I think this could be changed. It bit me a couple of times in the past, too.)
You'll want to declare
formfirst: