mirror of
https://codeberg.org/scip/yadu.git
synced 2025-12-17 20:50:58 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e9af16a8a2 | |||
| 9ede62037a |
2
Makefile
2
Makefile
@@ -11,7 +11,7 @@ VERSION = $(shell grep VERSION handler.go | head -1 | cut -d '"' -f2)
|
|||||||
all: buildlocal
|
all: buildlocal
|
||||||
|
|
||||||
buildlocal:
|
buildlocal:
|
||||||
go build
|
go build -o example/example example/example.go
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(tool) coverage.out testdata t/out example/example
|
rm -rf $(tool) coverage.out testdata t/out example/example
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import (
|
|||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VERSION = "0.1.1"
|
const VERSION = "0.1.2"
|
||||||
|
|
||||||
// We use RFC datestring by default
|
// We use RFC datestring by default
|
||||||
const DefaultTimeFormat = "2006-01-02T03:04.05 MST"
|
const DefaultTimeFormat = "2006-01-02T03:04.05 MST"
|
||||||
@@ -212,7 +212,7 @@ func (h *Handler) appendAttr(wa map[string]interface{}, a slog.Attr) {
|
|||||||
}
|
}
|
||||||
wa[name] = innerwa
|
wa[name] = innerwa
|
||||||
|
|
||||||
if a.Key != "" {
|
if a.Key != "" && len(h.groups) > 0 {
|
||||||
h.groups = h.groups[:len(h.groups)-1]
|
h.groups = h.groups[:len(h.groups)-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user