update typo

This commit is contained in:
2026-03-02 17:50:10 +03:00
parent 3bcd00e54d
commit 5b7f4e63cc
8 changed files with 10 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ func WithDelimeter(in byte) func(*BaseEncoder) {
}
}
func WithGropuConfig(start, end, deli byte) func(*BaseEncoder) {
func WithGroupConfig(start, end, deli byte) func(*BaseEncoder) {
return func(be *BaseEncoder) {
be.group = groupConfig{
start: start,

View File

@@ -7,7 +7,7 @@ import (
func NewEncoderText(opts ...func(*BaseEncoder)) BaseEncoder {
opts = append([]func(*BaseEncoder){
WithGropuConfig(0, 0, ' '),
WithGroupConfig(0, 0, ' '),
WithNullValue("<nil>"),
WithDefaultValue(func(dst []byte, enc Encoder, val Value) []byte {
switch value := val.Any().(type) {

View File

@@ -2,4 +2,4 @@ package field
import "errors"
var ErrUndefined = errors.New("indefined")
var ErrUndefined = errors.New("undefined")

View File

@@ -505,7 +505,7 @@ type Field struct {
Value Value
}
// String implent stringer.
// String implement stringer.
func (f Field) String() string {
return fmt.Sprintf("%s=%+v", f.Key, f.Value)
}

View File

@@ -107,7 +107,7 @@ func AlertKVs(ctx context.Context, msg string, args ...any) {
global.AlertKVs(ctx, msg, args...)
}
// CritKVs sugared log by critcal level and key-values.
// CritKVs sugared log by critical level and key-values.
func CritKVs(ctx context.Context, msg string, args ...any) {
global.CritKVs(ctx, msg, args...)
}
@@ -147,7 +147,7 @@ func AlertKV(ctx context.Context, msg string, args ...field.Field) {
global.AlertKV(ctx, msg, args...)
}
// CritKV log by critcal level and key-values.
// CritKV log by critical level and key-values.
func CritKV(ctx context.Context, msg string, args ...field.Field) {
global.CritKV(ctx, msg, args...)
}

View File

@@ -10,7 +10,7 @@ import (
"gitoa.ru/go-4devs/log/level"
)
// Standard create new standart logrus handler.
// Standard create new standard logrus handler.
// Deprecated: delete after 0.7.0
func Standard() log.Logger {
return New(logrus.StandardLogger())

View File

@@ -113,7 +113,7 @@ func (l Logger) AlertKVs(ctx context.Context, msg string, args ...any) {
writeOutput(l.writekvs(ctx, level.Alert, msg, args))
}
// CritKVs sugared log by critcal level and key-values.
// CritKVs sugared log by critical level and key-values.
func (l Logger) CritKVs(ctx context.Context, msg string, args ...any) {
writeOutput(l.writekvs(ctx, level.Critical, msg, args))
}
@@ -153,7 +153,7 @@ func (l Logger) AlertKV(ctx context.Context, msg string, args ...field.Field) {
writeOutput(l.write(ctx, level.Alert, msg, args...))
}
// CritKV log by critcal level and key-values.
// CritKV log by critical level and key-values.
func (l Logger) CritKV(ctx context.Context, msg string, args ...field.Field) {
writeOutput(l.write(ctx, level.Critical, msg, args...))
}

View File

@@ -63,7 +63,7 @@ type option struct {
out io.Writer
}
// New creates standart logger.
// New creates standard logger.
func New(opts ...func(*option)) Logger {
log := option{
format: FormatString(field.NewEncoderText()),