From f38955c4bc8b35accafaeada68bbad891affb35c Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 18 Jan 2024 18:51:36 +0100 Subject: [PATCH] fix missing struct in README --- Makefile | 2 +- README.md | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fe4f21e..614d193 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/README.md b/README.md index e6c049f..252cb3b 100644 --- a/README.md +++ b/README.md @@ -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