Not a GO-user, but something you might think about stealing from NetDaemon: It has typed entities, so instead of ".EntityIds("binary_sensor.front_door")" you can do something like ".Entities.Sensors.front_door".
It obviously requires a script to run after you add/remove any in HA, but IMO it really improves the DX.
It obviously requires a script to run after you add/remove any in HA, but IMO it really improves the DX.