i18n

package
v0.0.0-...-bb7d413 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PLACEHOLDER = regexp.MustCompile("{(\\d)}")

Functions

func ErrorfWithLogger

func ErrorfWithLogger(logger Logger, format string, a ...interface{}) *errors.Error

func Format

func Format(format string, a ...interface{}) string

func FromJavaToGoSyntax

func FromJavaToGoSyntax(s string) string

func UnwrapError

func UnwrapError(err error) error

func WrapError

func WrapError(err error) error

Types

type AccumulatorLogger

type AccumulatorLogger struct {
	Buffer *[]string
}

func (AccumulatorLogger) Flush

func (s AccumulatorLogger) Flush() string

func (AccumulatorLogger) Fprintln

func (s AccumulatorLogger) Fprintln(w io.Writer, level string, format string, a ...interface{})

func (AccumulatorLogger) Name

func (s AccumulatorLogger) Name() string

func (AccumulatorLogger) Println

func (s AccumulatorLogger) Println(level string, format string, a ...interface{})

func (AccumulatorLogger) UnformattedFprintln

func (s AccumulatorLogger) UnformattedFprintln(w io.Writer, str string)

func (AccumulatorLogger) UnformattedWrite

func (s AccumulatorLogger) UnformattedWrite(w io.Writer, data []byte)

type HumanLogger

type HumanLogger struct{}

func (HumanLogger) Flush

func (s HumanLogger) Flush() string

func (HumanLogger) Fprintln

func (s HumanLogger) Fprintln(w io.Writer, level string, format string, a ...interface{})

func (HumanLogger) Name

func (s HumanLogger) Name() string

func (HumanLogger) Println

func (s HumanLogger) Println(level string, format string, a ...interface{})

func (HumanLogger) UnformattedFprintln

func (s HumanLogger) UnformattedFprintln(w io.Writer, str string)

func (HumanLogger) UnformattedWrite

func (s HumanLogger) UnformattedWrite(w io.Writer, data []byte)

type HumanTagsLogger

type HumanTagsLogger struct{}

func (HumanTagsLogger) Flush

func (s HumanTagsLogger) Flush() string

func (HumanTagsLogger) Fprintln

func (s HumanTagsLogger) Fprintln(w io.Writer, level string, format string, a ...interface{})

func (HumanTagsLogger) Name

func (s HumanTagsLogger) Name() string

func (HumanTagsLogger) Println

func (s HumanTagsLogger) Println(level string, format string, a ...interface{})

func (HumanTagsLogger) UnformattedFprintln

func (s HumanTagsLogger) UnformattedFprintln(w io.Writer, str string)

func (HumanTagsLogger) UnformattedWrite

func (s HumanTagsLogger) UnformattedWrite(w io.Writer, data []byte)

type Logger

type Logger interface {
	Fprintln(w io.Writer, level string, format string, a ...interface{})
	UnformattedFprintln(w io.Writer, s string)
	UnformattedWrite(w io.Writer, data []byte)
	Println(level string, format string, a ...interface{})
	Name() string
	Flush() string
}

type MachineLogger

type MachineLogger struct{}

func (MachineLogger) Flush

func (s MachineLogger) Flush() string

func (MachineLogger) Fprintln

func (s MachineLogger) Fprintln(w io.Writer, level string, format string, a ...interface{})

func (MachineLogger) Name

func (s MachineLogger) Name() string

func (MachineLogger) Println

func (s MachineLogger) Println(level string, format string, a ...interface{})

func (MachineLogger) UnformattedFprintln

func (s MachineLogger) UnformattedFprintln(w io.Writer, str string)

func (MachineLogger) UnformattedWrite

func (s MachineLogger) UnformattedWrite(w io.Writer, data []byte)

type NoopLogger

type NoopLogger struct{}

func (NoopLogger) Flush

func (s NoopLogger) Flush() string

func (NoopLogger) Fprintln

func (s NoopLogger) Fprintln(w io.Writer, level string, format string, a ...interface{})

func (NoopLogger) Name

func (s NoopLogger) Name() string

func (NoopLogger) Println

func (s NoopLogger) Println(level string, format string, a ...interface{})

func (NoopLogger) UnformattedFprintln

func (s NoopLogger) UnformattedFprintln(w io.Writer, str string)

func (NoopLogger) UnformattedWrite

func (s NoopLogger) UnformattedWrite(w io.Writer, data []byte)

Jump to

Keyboard shortcuts

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