Documentation
¶
Index ¶
- Constants
- Variables
- func Case2Camel(name string) string
- func MarkdownBold(input string) string
- func MarkdownItalic(input string) string
- func MarkdownLinefeed() string
- func MarkdownLink(input string, url string) string
- func MarkdownPhonesInAt(phones []string) string
- func MarkdownPhonesInText(phones []string) string
- func MarkdownPicture(url string) string
- func MarkdownQuote(input string) string
- func MarkdownSortedSlice(s []string) string
- func MarkdownSubjectLevelFive(input string) string
- func MarkdownSubjectLevelFour(input string) string
- func MarkdownSubjectLevelOne(input string) string
- func MarkdownSubjectLevelSix(input string) string
- func MarkdownSubjectLevelThree(input string) string
- func MarkdownSubjectLevelTwo(input string) string
- func MarkdownUnsortedSlice(s []string) string
- func MirrorString(input string) string
- func MirrorStringWithSeparation(input string, separation string) string
- func RemoveExtraSpace(s string) string
- func ReverseString(input string) string
Constants ¶
View Source
const ( Comma string = "," TwoSpace string = " " OneSpace string = " " HyphenSpace string = "- " Hyphen string = "-" Linefeed string = "\n" WindowsLinefeed string = "\r\n" Dot string = "." Split string = "|" Star string = "*" Pound string = "#" GreaterThan string = ">" LessThan string = "<" Equal string = "=" LeftBracket string = "[" RightBracket string = "]" LeftParentheses string = "(" RightParentheses string = ")" Exclamation string = "!" Point string = "." UnderLine string = "_" Kong string = "" Colon string = ":" LeftQuote string = "'" RightQuote string = "'" LeftDoubleQuote string = "\"" RightDoubleQuote string = "\"" Tab string = "\t" FullStop string = "。" QuanjiaoSpace string = " " SlantingBar string = "/" SlantingBarReverse string = "\\" At string = "@" Question string = "?" And string = "&" Percentage string = "%" LeftChineseBracket string = "【" RightChieseBracket string = "】" )
View Source
const (
HTMLNbsp string = " "
)
Variables ¶
Functions ¶
func MarkdownLinefeed ¶
func MarkdownLinefeed() string
func MarkdownLink ¶
链接 [this is a link](http://name.com)
func MarkdownPhonesInAt ¶
func MarkdownPhonesInText ¶
{
"msgtype": "markdown",
"markdown": {
"title":"杭州天气",
"text": "#### 杭州天气 @150XXXXXXXX \n> 9度,西北风1级,空气良89,相对温度73%\n> \n> ###### 10点20分发布 [天气](https://www.dingalk.com) \n"
},
"at": {
"atMobiles": [
"150XXXXXXXX"
],
"atUserIds": [
"user123"
],
"isAtAll": false
}
}
func MarkdownQuote ¶
func MarkdownSubjectLevelOne ¶
markdown支持的语法 https://developers.dingtalk.com/document/chatgroup/basic-message-types
func MarkdownSubjectLevelSix ¶
func MarkdownSubjectLevelTwo ¶
func MirrorString ¶
func RemoveExtraSpace ¶
func ReverseString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.