Skip to content

refactor: replace []byte(fmt.Sprintf) with fmt.Appendf#496

Merged
Shaptic merged 4 commits intostellar:mainfrom
deepdring:main
Sep 11, 2025
Merged

refactor: replace []byte(fmt.Sprintf) with fmt.Appendf#496
Shaptic merged 4 commits intostellar:mainfrom
deepdring:main

Conversation

@deepdring
Copy link
Contributor

What

Inspired by #476 and replace all.

Optimize code using a more modern writing style. Official support by Go Team. https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize.

Why

[TODO: Why this change is being made. Include any context required to understand the why.]

Known limitations

[TODO or N/A]

Signed-off-by: deepdring <deepdrink@icloud.com>
@deepdring
Copy link
Contributor Author

friendly ping

@deepdring
Copy link
Contributor Author

Thanks for your review!

Look like the CI error has not related with this pr.

 > [internal] load git source https://github.com/stellar/go.git#protocol-23:
0.009 Initialized empty Git repository in /var/lib/docker/overlay2/9uyatn086bk6p9e4uibnao281/diff/
------
ERROR: failed to build: failed to solve: failed to read dockerfile: failed to load cache key: repository does not contain ref protocol-23, output: ""
make: *** [Makefile:84: build-friendbot] Error 1
Error: Process completed with exit code 2.

@Shaptic Shaptic merged commit 872601f into stellar:main Sep 11, 2025
17 of 18 checks passed
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.

2 participants