v0.3.4 — Awesome-Go Preparation
What's Changed
Test Coverage: 91.7% -> 93.8%
internal/binding: 64.4% -> 97.7% (allsetFieldtypes, edge cases, invalid inputs)- New
router_generic_test.go: tests forHEAD[Req,Res]()andOPTIONS[Req,Res]() openapi_test.go:WriteJSONandWriteYAMLtestsmiddleware/circuitbreaker_test.go: 6 new tests (constructors, state, counts, reset)box_test.go:UnauthorizedandForbiddentestsmiddleware/logger_test.go,recovery_test.go: default constructor tests
Documentation Fixes
- Fixed 5 critical API mismatches in README vs actual code:
JWT()signature corrected toJWT(signingKey)/JWTWithConfig(config)RateLimit()signature corrected toRateLimit(rate, burst)/RateLimitWithConfig(config)CircuitBreaker()signature: removed non-existent fields, added helper functionsrouter.Run()replaced withhttp.ListenAndServe()(method does not exist)- Package godoc:
*fursy.Boxwithout type params ->*fursy.Context
CI/CD
- Fixed duplicate workflow triggers (push + pull_request on same branch)
- Switched to GitHub Flow (feature branches -> PR -> main)
- Branch protection enabled on main (required status checks)
Full Changelog: v0.3.3...v0.3.4