Repository navigation
v0.1.0
goproxy v0.1.0
HTTP mock proxy wrapper for Go development.
Install
go install github.com/dougbarrett/goproxy/cmd/goproxy@v0.1.0Usage
goproxy init # Create .goproxy/ with sample config
goproxy go run ./cmd/app # Wrap your app with the proxyFeatures
- Rule-based mocking — regex URL and body pattern matching from JSON config files
- Catch-all — unmatched requests return a default mock response
- UUID-scoped admin endpoints —
/logs,/clear,/reload,/health - Session logging — timestamped NDJSON log files in
.goproxy/logs/ - Auto free port — no port configuration needed
- Multi-config — load rules from multiple
.goproxy/*.jsonfiles - Dynamic merge — request body fields merged into mock responses
- Zero dependencies — pure Go standard library