Skip to content
Sections
>> Trisquel >> 软件包 >> aramo >> devel >> golang-github-client9-reopen-dev
aramo  ]
[ 源代码: golang-github-client9-reopen  ]

软件包: golang-github-client9-reopen-dev (1.0.0-3)

freopen functionality for golang's io.Writers (library)

Makes a standard os.File a "reopenable writer" and allows SIGHUP signals to reopen log files, as needed by logrotated. This is inspired by the C/Posix freopen.

The simple version reopen.NewFileWriter does unbuffered writing. A call to .Reopen closes the existing file handle, and then re-opens it using the original filename.

The more advanced version reopen.NewBufferedFileWriter buffers input and flushes when the internal buffer is full (with care) or if 30 seconds has elapsed.

下载 golang-github-client9-reopen-dev

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 5.7 kB29 kB [文件列表]