This repo provides a collection of Golang libraries relating to Xiaomi products:
miio - Implementation of the Xiaomi MIIO protocol. The definition of this
protocol can be found here
vacuum - Library for communicating with Xiaomi robot vacuums. The definition can be found here