Hello @Light Lu welcome to Microsoft Q&A and thanks for your question in advance.
Microsoft publishes open-source device SDKs on GitHub to help connect devices to Azure IoT Hub and the Device Provisioning Service. The device SDKs are available for C, .NET (C#), Java, Node.js, and Python. Please see Azure IoT Device SDKs Platform Support to better understand the support provided on those SDKs.
In addition to the supported SDKs, Microsoft provides several other avenues to empower customers and developers to connect their devices to Azure IoT - like a platform abstraction layer (PAL) in the Azure IoT Hub Device C SDK that helps developers to easily port the SDK to their platform. To learn more, see the C SDK porting guidance.
IoT Plug and Play enables solution builders to integrate smart devices with their solutions without any manual configuration. At the core of IoT Plug and Play, is a device model that a device uses to advertise its capabilities to an IoT Plug and Play-enabled application. Microsoft commits to integrate IoT Plug and Play on the supported Azure IoT Device SDKs (C, .NET (C#), Java, Node.js, and Python).
**To your question: ** Microsoft does not support Go SDK, therefore we don't have samples on how to use Go programming language to connect to Azure IoT Hub using Azure IoT Plug and Play. Though IoT Plug and Play and the Digital Twins Definition Language (DTDL) are open to the community, and Microsoft welcomes collaboration with customers, partners, and the industry. Both are based on open W3C standards such as JSON-LD and RDF, which enables easier adoption across services and tooling.
Finally, I noticed there is already a feature request under Azure IoT (Hub, DPS, SDKs) feedback portal: https://feedback.azure.com/forums/321918-azure-iot-hub-dps-sdks/suggestions/32822650-go-sdk-for-azure-iot . Please vote for that feature so it can be considered as a new language to be supported by Microsoft.
Thank you so much. Let us know if you have further questions or mark this as the answer to your question to help others find it :)!