5min chapter

Go Time: Golang, Software Engineering cover image

Building desktop apps with Go + web tech

Go Time: Golang, Software Engineering

CHAPTER

Is There a Way to Communicate With JavaScript?

The IPC mechanism, the way that it works is that you essentially bind go functions or struct methods to your application. And they get presented at the front end through a JavaScript endpoint. So instead of having to worry about messages, requests, parameters, all that sort of stuff, you actually just call functions. It's interesting because we do think of go as a server with eight HTTP interfaces and things. But it doesn't end up being quite similar because you have this front end that's communicating somehow with the back end through some kind of procedure calls. The difference is that that mechanism for communication is completely hidden for me.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode