Skip to content

Fix strings.Builder type assertion panic in sync.Pool#14

Merged
x-stp merged 1 commit intomainfrom
fix/string-builder-type-assertion
Aug 5, 2025
Merged

Fix strings.Builder type assertion panic in sync.Pool#14
x-stp merged 1 commit intomainfrom
fix/string-builder-type-assertion

Conversation

@x-stp
Copy link
Copy Markdown
Owner

@x-stp x-stp commented Aug 5, 2025

Changed assertion from strings.Builder to *strings.Builder since sync.Pool returns a pointer. Also removed & operator in fmt.Fprintf.

Fixes #13

Changed assertion from strings.Builder to *strings.Builder since
sync.Pool returns a pointer. Also removed & operator in fmt.Fprintf.

Fixes #13
@x-stp x-stp merged commit 317e6b9 into main Aug 5, 2025
4 checks passed
@x-stp x-stp self-assigned this Aug 5, 2025
@x-stp x-stp deleted the fix/string-builder-type-assertion branch August 5, 2025 19:35
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.

interface conversion: interface {} is *strings.Builder, not strings.Builder

1 participant