DEV Community

Cover image for How to create a native macOS app on Go (Golang) and React.js with full code protection — Part 1

How to create a native macOS app on Go (Golang) and React.js with full code protection — Part 1

Vic Shóstak on January 12, 2020

Introduction Welcome to the next article in the “How to” series! This time, we will analyze the creation of a native desktop application...
Collapse
 
christopy profile image
Christopher Ribeiro

In the first example, the variable t actually should be renamed to box:

t := packr.NewBox("./templates")

Because its used here as box:

s, err := box.FindString("amdin/index.html")

Just to help others don't fall in the same error as me :)

Collapse
 
koddr profile image
Vic Shóstak

Thx! Fix it.

Collapse
 
yougotwill profile image
Will G

Great article! Loved the writing structure with questions and exercises at the end.

Collapse
 
koddr profile image
Vic Shóstak

Thanks! It's so nice to be appreciated! I plan to add this ending part to all of my articles. Be aware of that 😉

Collapse
 
yougotwill profile image
Will G

Challenge accepted! 😆

Thread Thread
 
koddr profile image
Vic Shóstak

Haha 🎯 okay!

Collapse
 
cdnsteve profile image
Steven Leggett • Edited

As an FYI, the Github repo for Packr seems to be advising folks to use Pkger at github.com/markbates/pkger instead.

Collapse
 
koddr profile image
Vic Shóstak

Yep, I know and love it. This is a Part 2 of this article ;)

Collapse
 
flyinglarson profile image
Lars Wenk

thanks for that :) i like that tutorial

Collapse
 
koddr profile image
Vic Shóstak

You're welcome! Hope it helps, before I write Part 2 :D

Collapse
 
sagarwal profile image
Sagar Agarwal

Quite helpful article !
In macOS, once I get the executable in .app, how can I open it in Xcode ?
I need it for a few things like code signing & integrating Sparkle in my app.