forked from lei.chen/myxce
1. Add //go:build !cgo to control_host_test.go so the stub-testing tests only run in non-CGO builds, matching the stub.go build constraint. Clean up dead nil check in SignatureCompiles test. 2. Replace two independent if-statements for actionType mapping in ControlHost with a map lookup + explicit guard, consistent with ControlQueue's ActionMap pattern. Prevents silent zero-value actionType if SupportedHostActions expands later. |
||
|---|---|---|
| .. | ||
| backend | ||
| cmd | ||
| common | ||
| config | ||
| controllers | ||
| docs | ||
| middleware | ||
| models | ||
| router | ||
| services | ||
| store | ||
| tools/encrypt | ||
| utils | ||
| go.mod | ||
| go.sum | ||
| meson.build | ||
| README.md | ||
(1) run server command:
cd cmd go run main.go
(2) run server with different log level: cd cmd go run main.go -level=debug
level options: info/debug/warn/error/fatal