How to use externally compiled binary to create openwrt package with menu

I am trying to create my first openwrt package(plugin).
I have a Golang captive portal software that I use and would like to compile it into openwrt. I think this part is pretty straightforward and simple for me.
How do I get that binary into a fully functioning openwrt program with possibly a menu for configurations?
I have tried to follow helloworld but it seems to do everything from source code viewpoint.

You can look at existing Go-based packages like AdGuard Home, Syncthing or Tailscale, to name a few, for inspiration. All the sources are on GitHub. Then if you have questions, ask here.

This is good. I was actually looking for examples first. I don't have questions yet.