Skip to content

Stop proxying strings.EqualFold through types - #110

Merged
leocavalcante merged 1 commit into
mainfrom
refactor/stdlib-types
Sep 29, 2026
Merged

leocavalcante merged 1 commit into
mainfrom
refactor/stdlib-types

Conversation

@leocavalcante

Copy link
Copy Markdown
Member

Summary

  • Remove types.EqualFold. It only called strings.EqualFold.
  • Generated eq_ignore_case and neq_ignore_case checks call strings.EqualFold, and the file imports strings when that call is present.
  • SliceOnlyContains, SliceNotContains, MapOnlyContains, and MapNotContains stay in types. Each one walks a collection. Scalar in already emits ==.

Test plan

  • go test ./types/ ./internal/pkgwriter/ ./internal/codegenerator/
  • make unittests
  • make endtoendtests

Fixes #51

types.EqualFold only forwarded to the standard library.
@leocavalcante leocavalcante added go Pull requests that update go code refactor labels Sep 29, 2026
@leocavalcante
leocavalcante merged commit 35f3e84 into main Sep 29, 2026
4 checks passed
@leocavalcante
leocavalcante deleted the refactor/stdlib-types branch September 29, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update go code refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid the use of types package as a proxy do stdlib

1 participant