My thought also. - I was wondering why this post made it to the first page of HN. Obviously many fellow HN users find it valuable / do not know that there are solutions to this.
I'm baffled by this, too. Maybe it's interesting for people who are interested in learning Golang, but I think it's clear it's not the best piece of code to learn from.
Gee, thanks for the boost in confidence. :|
I think you're self-confident enough.
Or maybe it's just that good :D
jk...
Just made it to see if I could :)
https://linux.die.net/man/8/logrotate