fix missing struct in README

This commit is contained in:
2024-01-18 18:51:36 +01:00
parent 60d7a97b45
commit f38955c4bc
2 changed files with 8 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ buildlocal:
go build
clean:
rm -rf $(tool) coverage.out testdata t/out
rm -rf $(tool) coverage.out testdata t/out example/example
test: clean
go test $(ARGS)

View File

@@ -27,6 +27,13 @@ The log format generated by yadu looks like this:
```go
logger := slog.New(yadu.NewHandler(os.Stdout, nil))
type Ammo struct {
Forweapon string
Impact int
Cost int
Range int
}
type Enemy struct {
Alive bool
Health int