fix: use fmt.Sprintf
This commit is contained in:
parent
5d79a22ebb
commit
4f4a02f30a
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ func CodeBlockWithLanguage(language string, content string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func CodeBlock(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 {
|
func Time(time *time.Time) string {
|
||||||
|
|
Loading…
Reference in a new issue