去串行包给出错误:“未定义引用”

I'm struggling to make this package work for me in windows: https://github.com/mikepb/go-serial When I call one of its functions, it gave me errors like:

C:\Users\WIN10\AppData\Local\Temp\go-build787754682\b002\_x007.o: In function `get_port_details':
libs\serial/windows.c:345: undefined reference to `__imp_SetupDiGetClassDevsA'
libs\serial/windows.c:358: undefined reference to `__imp_SetupDiOpenDevRegKey'
libs\serial/windows.c:350: undefined reference to `__imp_SetupDiEnumDeviceInfo'
libs\serial/windows.c:376: undefined reference to `__imp_CM_Get_Parent'
libs\serial/windows.c:379: undefined reference to `__imp_CM_Get_DevNode_Registry_PropertyA'
libs\serial/windows.c:396: undefined reference to `__imp_SetupDiDestroyDeviceInfoList'
libs\serial/windows.c:404: undefined reference to `__imp_CM_Get_Device_IDA'
libs\serial/windows.c:383: undefined reference to `__imp_SetupDiDestroyDeviceInfoList'

I don't have enough experience in library handling so I think I should do some steps before compiling, but the readme doesn't have any instructions, so please help me make it run.