cmd/mi: formatting
This commit is contained in:
parent
6514cd5b6f
commit
1eb68e9caf
|
@ -19,7 +19,7 @@ type Post struct {
|
||||||
|
|
||||||
func (p Post) Format() string {
|
func (p Post) Format() string {
|
||||||
var sb strings.Builder
|
var sb strings.Builder
|
||||||
fmt.Fprintf(&sb, "New post %s: %s\n\n", p.Title, p.URL)
|
fmt.Fprintf(&sb, "New post: %s\n\n%s\n\n", p.Title, p.URL)
|
||||||
|
|
||||||
for _, tg := range p.Tags {
|
for _, tg := range p.Tags {
|
||||||
tg = strings.ReplaceAll(tg, "-", "")
|
tg = strings.ReplaceAll(tg, "-", "")
|
||||||
|
|
Loading…
Reference in New Issue