项目作者: koorgoo

项目描述 :
Rotation for *os.File
高级语言: Go
项目地址: git://github.com/koorgoo/rotate.git
创建时间: 2018-10-09T13:05:46Z
项目社区:https://github.com/koorgoo/rotate

开源协议:MIT License

下载


rotate GoDoc Build Status

Rotation for *os.File.

Installation

  1. go get -u github.com/koorgoo/rotate

Quick Start

  1. f := rotate.MustOpen(name, rotate.Config{
  2. Bytes: rotate.MB,
  3. Count: 10,
  4. })
  5. defer f.Close()

See examples.