fogleman/primitive

Mac app

Opened this issue · 1 comments

hi,

It's possible to create a Mac app that runs a go script ? How? Thanks a lot

A couple of options:

  1. Build a regular Go binary, launch it via NSTask and communicate over stdin/stdout. https://developer.apple.com/reference/foundation/nstask

  2. Build a shared or static library and link to it. http://blog.ralch.com/tutorial/golang-sharing-libraries/