A monitoring program written by Golang, that is, running on the terminal and outputting logs continuously.
Now we need to develop an application program on Mac, the function is very simple, a button, a textarea, click the button is to start the compiled executable file, and then display the output log in the text box.
It’s probably soy sauce and purple. . .
So how do I call this executable file and package it?
What you need is: a graphical interface log output tool?
Have you done the part about log output?
Then you can find a Golang GUI library. There is no need to use Swift to write another graphical interface.
If you have to use Swift, learn about NSTask.