aide

package
v0.0.0-...-ea7d51e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanTextBlock

func CleanTextBlock(msg string) string

CleanTextBlock msg

func CutPrefix

func CutPrefix(s, prefix string) (string, bool)

CutPrefix prefix matches

func EitherCutPrefix

func EitherCutPrefix(s string, prefixs ...string) (string, bool)

EitherCutPrefix If any prefix matches, the remainder is returned

func EitherTrimEqual

func EitherTrimEqual(s string, prefixs ...string) (string, bool)

EitherTrimEqual

func MsgFilter

func MsgFilter(msg string) string

func NewSendCard

func NewSendCard(header *larkcard.MessageCardHeader, elements ...larkcard.MessageCardElement) (string, error)

func ParseContent

func ParseContent(content, msgType string) string

func ParseFileKey

func ParseFileKey(content string) string

func ParseImageKey

func ParseImageKey(content string) string

func ParsePostContent

func ParsePostContent(content string) string

func ParsePostImageKeys

func ParsePostImageKeys(content string) []string

func ProcessMessage

func ProcessMessage(msg interface{}) (string, error)

ProcessMessage

func ProcessNewLine

func ProcessNewLine(msg string) string

ProcessNewLine replace \n

func ProcessQuote

func ProcessQuote(msg string) string

ProcessQuote replace \\\"

func ProcessUnicode

func ProcessUnicode(msg string) string

ProcessUnicode

func TrimEqual

func TrimEqual(s, prefix string) (string, bool)

TrimEqual trim space and equal

func WithCardHeader

func WithCardHeader(color string, title ...string) *larkcard.MessageCardHeader

WithCardHeader set card header

func WithCardHr

func WithCardHr() larkcard.MessageCardElement

WithCardHr set card hr

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL