Aligning struct fields for better memory management.

This commit is contained in:
2024-06-20 08:40:55 +01:00
parent fe34a03eb8
commit a4f7e1690d
7 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -42,16 +42,16 @@ const (
var defaultOutput = os.Stdout
type Logger struct {
output io.Writer
format string
minLogLevel int
showCaller bool
output io.Writer
}
type LogMessage struct {
Message string
Pairs map[string]any
output io.Writer
Pairs map[string]any
Message string
}
func (m *LogMessage) String() string {