I want to print some logs for debugging and testing, but existing logs are massive, so I want to print my own logs to stderr:
go run main.go 1>/dev/null <
The log package by default prints to os.Stderr.
log
os.Stderr
You can also use os.Stderr directly (it's an os.File).
os.File