Just a small go program to take screenshot in windows, linux & MacOS
Go
go-cross-screenshot
A very small piece of crossplatform go code to take screenshot via command line. Very usefull library to take screenshots of GUI apps during automation testing.
It may not fit your use case but it does the job for me.