loggingsyncbuffer

package
v0.0.0-...-0ada750 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package loggingsyncbuffer contains a SyncWriter that writes to a buffer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncWriter

type SyncWriter struct {
	// contains filtered or unexported fields
}

SyncWriter implements logger.SyncWriter.

func New

func New() *SyncWriter

New returns a new SyncWriter.

func (*SyncWriter) String

func (f *SyncWriter) String() string

String returns the contents of the buffer.

func (*SyncWriter) Sync

func (f *SyncWriter) Sync() error

Sync implements logger.SyncWriter.

func (*SyncWriter) Write

func (f *SyncWriter) Write(p []byte) (n int, err error)

Write implements logger.SyncWriter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL