Skip to content

Commit

Permalink
Merge pull request #58 from kounoike:improvement/message-with-bold
Browse files Browse the repository at this point in the history
太字を使ってちょっと見やすく
  • Loading branch information
kounoike authored Apr 1, 2023
2 parents db4c012 + 4be647e commit a90db48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions template/program_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ type programMessageTemplateArgs struct {
}

const (
programMessageTemplateString = `{{ .Program.Name }}
{{ .Program.Genre }}
{{ .Program.Description }}
{{ .Service.Name }}
{{ .Program.StartAt |toTimeStr }}~{{ .Program.Duration | toDurationStr }}
programMessageTemplateString = `**{{ .Program.Name }}**
**ジャンル**:{{ .Program.Genre }}
**説明**:{{ .Program.Description }}
**放送局**:{{ .Service.Name }} **放送時間**:{{ .Program.StartAt |toTimeStr }}~{{ .Program.Duration | toDurationStr }}
**番組詳細**
{{ .Program.Json | toExtendStr }}`
)

Expand Down
2 changes: 1 addition & 1 deletion template/utilf_func.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func toExtendStr(j json.RawMessage) string {
any := jsoniter.Get(b, "extended")
str := ""
for _, key := range any.Keys() {
str += fmt.Sprintf("%s:%s\n", key, any.Get(key).ToString())
str += fmt.Sprintf("**%s**: %s\n", key, any.Get(key).ToString())
}
return str
}

0 comments on commit a90db48

Please sign in to comment.