Working proof of the Go (golang) server running inside Flutter

  Flutter App

flap


Working proof of the Go server running inside Flutter

Video in action

Prerequisites

Build Go server

cd go

macOS:

make macos

iOS:

make ios

iOS Simulator:

make ios-simulator

Run app

cd ..
flutter devices
flutter run -d {target}

Build app

flutter build {macos, ios}

Known issues

  • Hot reload doesn’t work (workaround: run Go server independently in the development phase)

Q&A

Why .dylib instead of .a as an iOS library?

Because I can despite official docs prefer .a. In fact I haven’t even tried .a.

Contribution

I’d like to see stuff working on other platforms.

Download source code on GitHub