Skip to content

gomobile #20

Description

I use FLutter, and instead of using the Emitter Dart client lib, its also possible to use the go client lib by compilng golang with gomobile.
Then its really easy to embed the gomobile lib inside Flutter. You can even use event streams.

I am raising this because its another way to get the same thing done and has some advantages:

  • reduces code maintenance
  • Using golang for the networking on both sides makes the whole thing more sturdy and when you fix a bug your fixing it on both sides.
  • Flutter Plugins for GO-Desktop work exactly the same on Mobile as on Desktop. SO you can use it for Desktop too.
  • Flutter Web can also use it by using gowasm.

Of course there are some bad things too:

  • More overhead because you have to pass through more layers, but for GUI its a minor hit and GUI is not where the bottleneck is.
  • More complexity for sure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions