| 1 | package sarif |
| 2 | |
| 3 | // MultiformatMessageString ... |
| 4 | type MultiformatMessageString struct { |
| 5 | PropertyBag |
| 6 | Text *string `json:"text,omitempty"` |
| 7 | Markdown *string `json:"markdown,omitempty"` |
| 8 | } |
| 9 | |
| 10 | // NewMarkdownMultiformatMessageString ... |
| 11 | func NewMarkdownMultiformatMessageString(markdown string) *MultiformatMessageString { |
| 12 | return &MultiformatMessageString{ |
| 13 | Markdown: &markdown, |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | // NewMultiformatMessageString ... |
| 18 | func NewMultiformatMessageString(text string) *MultiformatMessageString { |
| 19 | return &MultiformatMessageString{ |
| 20 | Text: &text, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // WithMarkdown ... |
| 25 | func (m *MultiformatMessageString) WithMarkdown(markdown string) *MultiformatMessageString { |
| 26 | m.Markdown = &markdown |
| 27 | return m |
| 28 | } |