Setup Captive Portal via golang server

How do I go about doing this? I wish to serve up my own custom captive portal, I know golang, and wish to use it.

Do I need to configure openwrt to point to my captive portal? Or is there a way to let my go server handle it completely?