withNote 用于生成纯文本脚注
(note string)
| 146 | |
| 147 | // withNote 用于生成纯文本脚注 |
| 148 | func withNote(note string) larkcard.MessageCardElement { |
| 149 | noteElement := larkcard.NewMessageCardNote(). |
| 150 | Elements([]larkcard.MessageCardNoteElement{larkcard.NewMessageCardPlainText(). |
| 151 | Content(note). |
| 152 | Build()}). |
| 153 | Build() |
| 154 | return noteElement |
| 155 | } |
| 156 | |
| 157 | // withMainMd 用于生成markdown消息体 |
| 158 | func withMainMd(msg string) larkcard.MessageCardElement { |
no outgoing calls
no test coverage detected