Documentation ¶
Index ¶
- func CleanTextBlock(msg string) string
- func CutPrefix(s, prefix string) (string, bool)
- func EitherCutPrefix(s string, prefixs ...string) (string, bool)
- func EitherTrimEqual(s string, prefixs ...string) (string, bool)
- func MsgFilter(msg string) string
- func NewSendCard(header *larkcard.MessageCardHeader, elements ...larkcard.MessageCardElement) (string, error)
- func ParseContent(content, msgType string) string
- func ParseFileKey(content string) string
- func ParseImageKey(content string) string
- func ParsePostContent(content string) string
- func ParsePostImageKeys(content string) []string
- func ProcessMessage(msg interface{}) (string, error)
- func ProcessNewLine(msg string) string
- func ProcessQuote(msg string) string
- func ProcessUnicode(msg string) string
- func TrimEqual(s, prefix string) (string, bool)
- func WithCardHeader(color string, title ...string) *larkcard.MessageCardHeader
- func WithCardHr() larkcard.MessageCardElement
- func WithCardMdContent(msg string) larkcard.MessageCardElement
- func WithCardNote(note string) larkcard.MessageCardElement
- func WithCardPlainText(msg string) larkcard.MessageCardElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EitherCutPrefix ¶
EitherCutPrefix If any prefix matches, the remainder is returned
func EitherTrimEqual ¶
EitherTrimEqual
func NewSendCard ¶
func NewSendCard(header *larkcard.MessageCardHeader, elements ...larkcard.MessageCardElement) (string, error)
func ParseContent ¶
func ParseFileKey ¶
func ParseImageKey ¶
func ParsePostContent ¶
func ParsePostImageKeys ¶
func WithCardHeader ¶
func WithCardHeader(color string, title ...string) *larkcard.MessageCardHeader
WithCardHeader set card header
func WithCardMdContent ¶
func WithCardMdContent(msg string) larkcard.MessageCardElement
WithCardMdContent generate markdown message
func WithCardNote ¶
func WithCardNote(note string) larkcard.MessageCardElement
WithCardNote set note
func WithCardPlainText ¶
func WithCardPlainText(msg string) larkcard.MessageCardElement
WithCardPlainText
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.