News for hackers. Stuff that matters.
Re:Native Mac APIs for Go by gspq on Thursday February 04, 2021 @03:35PM (#26029486)
Looks cool. What about Swift support?
Re:Native Mac APIs for Go by favorited on Thursday February 04, 2021 @08:42PM (#26032079)
That would be a lot more difficult (unless you limited support to the subset of Swift which is shared by Objective-C). Objective-C is an extremely simple extension to C, and has a rich runtime API. So any language which can interface with C can interface with Objective-C by using the runtime interfaces.
Re:Native Mac APIs for Go by gspq on Saturday February 06, 2021 @03:56PM (#26049857)
I successfully used the other way - calling Golang functions from iOS/Swift using Gomobile. It is working now for the new M1 Apple desktop computers too.