Help us shape the future of Go! Take the 2026 Go Developer Survey

console

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatText = internal.FormatText // 文本格式
	FormatJson = internal.FormatJson // JSON格式
)
View Source
const Name = "console"

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format = internal.Format

Format 日志输出格式

type Option

type Option func(o *options)

func WithFormat

func WithFormat(format Format) Option

WithFormat 设置输出格式

type Syncer

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

func NewSyncer

func NewSyncer(opts ...Option) *Syncer

func (*Syncer) Close

func (s *Syncer) Close() error

Close 关闭同步器

func (*Syncer) Name

func (s *Syncer) Name() string

Name 同步器名称

func (*Syncer) Write

func (s *Syncer) Write(entity *internal.Entity) error

Write 写入日志

Jump to

Keyboard shortcuts

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