mirror of
https://codeberg.org/scip/yadu.git
synced 2025-12-16 20:21:00 +01:00
fix missing struct in README
This commit is contained in:
2
Makefile
2
Makefile
@@ -12,7 +12,7 @@ buildlocal:
|
|||||||
go build
|
go build
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(tool) coverage.out testdata t/out
|
rm -rf $(tool) coverage.out testdata t/out example/example
|
||||||
|
|
||||||
test: clean
|
test: clean
|
||||||
go test $(ARGS)
|
go test $(ARGS)
|
||||||
|
|||||||
@@ -27,6 +27,13 @@ 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 Ammo struct {
|
||||||
|
Forweapon string
|
||||||
|
Impact int
|
||||||
|
Cost int
|
||||||
|
Range int
|
||||||
|
}
|
||||||
|
|
||||||
type Enemy struct {
|
type Enemy struct {
|
||||||
Alive bool
|
Alive bool
|
||||||
Health int
|
Health int
|
||||||
|
|||||||
Reference in New Issue
Block a user