Skip to Main Content
Hands-On GUI Application Development in Go
book

Hands-On GUI Application Development in Go

by Andrew Williams
February 2019
Intermediate to advanced content levelIntermediate to advanced
450 pages
11h 59m
English
Packt Publishing
Content preview from Hands-On GUI Application Development in Go

Communicating with the GUI

Now that the basic layout is coded, we will add functionality to present some data from a mock email server. As with the Walk example, we will load the model definitions and a test email server from the github.com/PacktPublishing/Hands-On-GUI-Application-Development-in-Go/client package.

First of all, let's write the code to load content from our model into the user interface. We will create a SetEmail(EmailMessage) function that sets the content of an email into the user interface. To help with converting from client.Email and time.Time to string, we will use the helper ToEmailString() and DateString() functions. This function will be called during interface load and also whenever we change the selected email: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Cross-Platform GUI Applications with Fyne

Building Cross-Platform GUI Applications with Fyne

Andrew Williams

Publisher Resources

ISBN: 9781789138412Supplemental Content