Versions in this module Expand all Collapse all v0 v0.25.1 Aug 2, 2024 v0.25.0 Jul 29, 2024 v0.24.0 Jul 28, 2024 v0.23.2 Jun 26, 2024 v0.23.1 Feb 11, 2024 v0.23.0 Feb 11, 2024 v0.22.1 Dec 31, 2023 v0.22.0 Jul 17, 2023 Changes in this version + const B + const GB + const GiB + const KB + const KiB + const MB + const MiB + const TB + const TiB + func IsPattern(name string) bool + type File struct + Flags int + MaxFileAge time.Duration + MaxFileSize int64 + MaxTotalAge time.Duration + MaxTotalFiles int + MaxTotalSize int64 + Mode os.FileMode + OpenFile FileOpener + func Create(name string) (f *File) + func (f *File) Close() (err error) + func (f *File) Rotate() error + func (f *File) Write(p []byte) (n int, err error) + type FileOpener = func(name string, flags int, mode os.FileMode) (io.Writer, error)