How to sets the process title in Go? Such as node.js
process.title=""
How to sets the process title in Go? Such as node.js
process.title=""
I don't think there is any currently. As its implementation would be OS dependent. Nodejs did it through libuv which on linux, it uses prctl syscall with PR_SET_NAME see source code.
You can accomplish the same result using the syscall package. And make sure you suffix your go source code with _linux as it would be OS dependant code.
Similar question with answer here