This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
packagemain
import(
"fmt"
"log"
"time"
"github.com/StackExchange/wmi"
"github.com/go-vgo/robotgo"
"github.com/tarm/serial"
)
typeWin32_PnPEntitystruct{
Namestring
}
funccheck()string{
vardevices[]Win32_PnPEntity
query:=`SELECT Name FROM Win32_PnPEntity WHERE Name LIKE '%(COM%'`