dailyrotate is a Go package for rotating (log) files daily. Documentation: tutorial api docs in godoc example code