elastic / elastic/elastic-agent-libs

refactor: deprecate str package and move to stdlib

Open
#354 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.