You probably don’t want to mess with the internals of an MQTT broker and most likely don’t need to either. Instead, just choose one of the free or open-source ones (I recommend mosquitto) and use some Go client (e.g., https://github.com/eclipse/paho.mqtt.golang) to publish and subscribe to topics from your application.
1 Like