diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-20 21:31:52 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-20 21:31:52 +0200 |
| commit | ae780ab2d6234e62fc716099405fb9941d86c0c3 (patch) | |
| tree | 96d75ff8ca3bfcbe07d2254d641aae8cff9169a3 /cmd | |
| parent | ed32c7fea5ad0fefccab9c99a51ebdae13b3a2f2 (diff) | |
internal/rpn: add variables.go with thread-safe variable storage
- NewVariables() creates variable storage
- SetVariable()/GetVariable()/DeleteVariable() for CRUD operations
- ListVariables()/FormatVariables() for variable listing
- ClearVariables() to remove all variables
- VariableStore interface for testability
- Exported error variables: ErrVariableNotFound, ErrInvalidVariableName
- Thread-safe with sync.RWMutex
- 12 comprehensive unit tests
- Fixes: SRP violation, unnecessary error returns, inefficient string concatenation
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
