Skip to content

Commit

Permalink
Change blueBadge to BlueBadge, it's public method
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Jun 2, 2024
1 parent f20ff7f commit b0340c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ func (m *Markdown) GreenBadgef(format string, args ...interface{}) *Markdown {
}

// BlueBadge set text with blue badge format.
func (m *Markdown) blueBadge(text string) *Markdown {
m.body = append(m.body, fmt.Sprintf("![Badge](https://img.shields.io/badge/%s-blue)", text))
return m
func (m *Markdown) BlueBadge(text string) *Markdown {
m.body = append(m.body, fmt.Sprintf("![Badge](https://img.shields.io/badge/%s-blue)", text))
return m
}

// BlueBadgef set text with blue badge format. It is similar to fmt.Sprintf.
func (m *Markdown) BlueBadgef(format string, args ...interface{}) *Markdown {
return m.blueBadge(fmt.Sprintf(format, args...))
return m.BlueBadge(fmt.Sprintf(format, args...))
}

0 comments on commit b0340c5

Please sign in to comment.