url + example fixes

This commit is contained in:
2024-01-19 08:15:06 +01:00
parent f38955c4bc
commit f733a30fab

View File

@@ -27,6 +27,8 @@ The log format generated by yadu looks like this:
```go ```go
logger := slog.New(yadu.NewHandler(os.Stdout, nil)) logger := slog.New(yadu.NewHandler(os.Stdout, nil))
type body string
type Ammo struct { type Ammo struct {
Forweapon string Forweapon string
Impact int Impact int
@@ -118,15 +120,12 @@ handler][humane]. Also helpfull was the [guide to writing `slog` handlers][guid
+ [humane slog handler][humane] + [humane slog handler][humane]
+ [A Guide to Writing `slog` Handlers][guide] + [A Guide to Writing `slog` Handlers][guide]
+ [`slog`: Golang's official structured logging package][sobyte]
+ [A Comprehensive Guide to Structured Logging in Go][betterstack] + [A Comprehensive Guide to Structured Logging in Go][betterstack]
[humane]: https://github.com/telemachus/humane/tree/main [humane]: https://github.com/telemachus/humane/tree/main
[guide]: https://github.com/golang/example/tree/master/slog-handler-guide [guide]: https://github.com/golang/example/tree/master/slog-handler-guide
[mrkaran]: https://mrkaran.dev/posts/structured-logging-in-go-with-slog/
[betterstack]: https://betterstack.com/community/guides/logging/logging-in-go/ [betterstack]: https://betterstack.com/community/guides/logging/logging-in-go/
## LICENSE ## LICENSE
This module is published under the terms of the BSD 3-Clause This module is published under the terms of the BSD 3-Clause