/
intermediate.go
35 lines (32 loc) · 1.1 KB
/
intermediate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package intermediate
// All of the formats specified above are available here. It is expected that implementations use this wherever
// possible to allow for changes
const (
Sentinel = '$'
Bold = 'b'
Italic = 'i'
Underline = 'u'
Strikethrough = 's'
Reset = 'r'
Colour = 'c'
)
// String representations of intermediate runes
const (
SentinelString = string(Sentinel)
BoldString = string(Bold)
ItalicString = string(Italic)
UnderlineString = string(Underline)
StrikethroughString = string(Strikethrough)
ResetString = string(Reset)
ColourString = string(Colour)
)
// String representations of intermediate runes with a prefixed sentinel
const (
SSentinelString = SentinelString + SentinelString
SBoldString = SentinelString + BoldString
SItalicString = SentinelString + ItalicString
SUnderlineString = SentinelString + UnderlineString
SStrikethroughString = SentinelString + StrikethroughString
SResetString = SentinelString + ResetString
SColourString = SentinelString + ColourString
)