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