elastic / elastic/elastic-agent-libs
refactor: deprecate str package and move to stdlib
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6
- Forks
- 57
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 3
Description
## Problem Description
The standard library now includes dedicated maps and slices packages, which provide the functionality currently covered by the custom str, strset, and ToSlice utilities.
## Impact
Maintaining these custom packages duplicates functionality that is already available in the Go standard library. This adds unnecessary code bloat, creates extra maintenance work, and can lead to inconsistencies between the custom implementations and the officially supported ones.
## Suggested Solution
Deprecate the str, strset, and ToSlice package. Update the codebase to use the corresponding functions from the standard library’s maps and slices packages instead, and remove the now‑redundant custom implementations.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the str and strset packages, the ToSlice utility, and all of their call sites. Compare their usage with the corresponding standard-library maps and slices functionality. Done means the custom implementations are deprecated or removed and the codebase consistently uses the standard-library replacements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100