Documentation ¶
Index ¶
- Constants
- func Debug(message ...any)
- func Error(message ...any)
- func Fatal(message ...any)
- func Info(message ...any)
- func LogEmptySpace(amount int)
- func LogFormatted(Severity string, message string, values []string)
- func LogNextLine(amount int)
- func Scan(a ...any) (n int, err error)
- func Scanf(format string, a ...any) (n int, err error)
- func Scanln(a ...any) (n int, err error)
- func Sscan(str string, a ...any) (n int, err error)
- func Sscanf(str string, format string, a ...any) (n int, err error)
- func Sscanln(str string, a ...any) (n int, err error)
- func Warning(message ...any)
- type ILogger
- type LoggerConfig
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func LogEmptySpace ¶
func LogEmptySpace(amount int)
func LogFormatted ¶
Formats provided text while logging it.
func LogNextLine ¶
func LogNextLine(amount int)
func Scan ¶
Scan scans text read from standard input, storing successive space-separated values into successive arguments. Newlines count as space. It returns the number of items successfully scanned. If that is less than the number of arguments, err will report why.
func Scanf ¶
Scanf scans text read from standard input, storing successive space-separated values into successive arguments as determined by the format. It returns the number of items successfully scanned. If that is less than the number of arguments, err will report why. Newlines in the input must match newlines in the format. The one exception: the verb %c always scans the next rune in the input, even if it is a space (or tab etc.) or newline.
func Scanln ¶
Scanln is similar to Scan, but stops scanning at a newline and after the final item there must be a newline or EOF.
func Sscan ¶
Sscan scans the argument string, storing successive space-separated values into successive arguments. Newlines count as space. It returns the number of items successfully scanned. If that is less than the number of arguments, err will report why.
func Sscanf ¶
Sscanf scans the argument string, storing successive space-separated values into successive arguments as determined by the format. It returns the number of items successfully parsed. Newlines in the input must match newlines in the format.
Types ¶
type ILogger ¶
type ILogger struct { // Formats provided text and logs it to the terminal. Format func(string, []string) // Logs a message to the terminal with the given configuration. Log func(...any) }
func ConfigureLogger ¶
func ConfigureLogger(config LoggerConfig) *ILogger
type LoggerConfig ¶
type LoggerConfig struct {
Severity string
}