Skip to content

conditions support#4

Draft
kindermax wants to merge 2 commits intomainfrom
conditions-support
Draft

conditions support#4
kindermax wants to merge 2 commits intomainfrom
conditions-support

Conversation

@kindermax
Copy link
Contributor

  • Add conditions support
  • refactor tests to use WithContext API and update README

m.kindritskiy added 2 commits December 23, 2025 15:34
- Refactor all test files to use featureflags.WithContext(ctx) instead of passing context map directly
- Update flags_test.go: replace context map parameters with WithContext()
- Update values_test.go: refactor GetValue*, GetValueInt, GetValueString, MustGetValue* tests
- Update client_test.go: update Get() calls to use new API
- Add comprehensive README section explaining context and conditions
- Document difference between simple mode (no context) and conditional mode (with context)
- Add example code showing both usage patterns
- Clarify when server conditions are evaluated vs ignored

All tests passing after refactoring.
@kindermax kindermax marked this pull request as draft December 23, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant