Skip to content

Conversation

@oncecelll
Copy link

I modified the return statement to utilize fmt.Appendf instead of fmt.Sprintf for creating the formatted byte slice.

The resulting code is cleaner and more efficient, maintaining the same functionality while improving resource usage.

More info can see golang/go#47579

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.

1 participant