How to use Golang to make a flutter plugin
1. compile golang codes into a aar file
https://yingshaoxo.gitbook.io/go-tutorial-for-pythoner/go-for-android
2. create a flutter plugin
3. use the aar file
https://stackoverflow.com/a/57075972/8667243
Congratulations
You have a common code base for windows, android, IOS now.
More info: https://github.com/yingshaoxo/flutter-discoverpingableserviceonlocalnetwork