Emulates swarm of characters connected to game world.
Run main application
go run .\cmd\swarm\main.goRun unit tests of project:
go test ./... --cover --count=1Build with compiler explanation of heap vs stack memory for variables:
go build -gcflags "-m=2"Run linters for project:
golangci-lint run ./...Run specific linter for project with fixes:
golangci-lint run --fix --disable-all --enable=wsl ./...Run concrete benchmark with profiling:
go test -benchmem -cpuprofile=cpu_out -memprofile=mem_out -run=^$ -bench ^BenchmarkEncryptor_Write$ github.com/melg8/swarm/internal/swarm/cryptRun pprof tool for profiling:
go tool pprof -http=localhost:8080 mem_outRun pprof tool for profiling:
go tool pprof -http=localhost:8080 cpu_out