File writer with rotation for Go