fix: use fmt.Sprintf

This commit is contained in:
Siwoo Jeon 2025-04-03 20:54:22 +09:00
parent 5d79a22ebb
commit 4f4a02f30a
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -27,7 +27,7 @@ func CodeBlockWithLanguage(language string, content string) string {
}
func CodeBlock(content string) string {
return "```\n" + content + "\n" + "```"
return fmt.Sprintf("```\n%s\n```", content)
}
func Time(time *time.Time) string {