I need to output unicode string as keyboard input on Windows, Linux and MacOs platforms. String could have none-ASCII printable chars from different languages (latin, cyrillic etc.). Platform specific system API calls should be used in each platform. For Windows I've found SendInput function. Unicode char could be passed to this function to create keyboard event. Are there any analogs for Linux and MacOS?
I've found keybd_event package for golang for simulating keystrokes. It works well with ASCII chars by using virtual codes. But It haven't support none-ASCII chars.