1 package list
2
3 import "github.com/jedib0t/go-pretty/v6/text"
4
5
6 type Style struct {
7 Format text.Format
8 CharItemSingle string
9 CharItemTop string
10 CharItemFirst string
11 CharItemMiddle string
12 CharItemVertical string
13 CharItemBottom string
14 CharNewline string
15 LinePrefix string
16 Name string
17 }
18
19 var (
20
21
22
23
24
25
26
27
28
29
30 StyleDefault = Style{
31 Format: text.FormatDefault,
32 CharItemSingle: "*",
33 CharItemTop: "*",
34 CharItemFirst: "*",
35 CharItemMiddle: "*",
36 CharItemVertical: " ",
37 CharItemBottom: "*",
38 CharNewline: "\n",
39 LinePrefix: "",
40 Name: "StyleDefault",
41 }
42
43
44
45
46
47
48
49
50
51
52
53 StyleBulletCircle = Style{
54 Format: text.FormatDefault,
55 CharItemSingle: "●",
56 CharItemTop: "●",
57 CharItemFirst: "●",
58 CharItemMiddle: "●",
59 CharItemVertical: " ",
60 CharItemBottom: "●",
61 CharNewline: "\n",
62 LinePrefix: "",
63 Name: "StyleBulletCircle",
64 }
65
66
67
68
69
70
71
72
73
74
75
76 StyleBulletFlower = Style{
77 Format: text.FormatDefault,
78 CharItemSingle: "✽",
79 CharItemTop: "✽",
80 CharItemFirst: "✽",
81 CharItemMiddle: "✽",
82 CharItemVertical: " ",
83 CharItemBottom: "✽",
84 CharNewline: "\n",
85 LinePrefix: "",
86 Name: "StyleBulletFlower",
87 }
88
89
90
91
92
93
94
95
96
97
98
99 StyleBulletSquare = Style{
100 Format: text.FormatDefault,
101 CharItemSingle: "■",
102 CharItemTop: "■",
103 CharItemFirst: "■",
104 CharItemMiddle: "■",
105 CharItemVertical: " ",
106 CharItemBottom: "■",
107 CharNewline: "\n",
108 LinePrefix: "",
109 Name: "StyleBulletSquare",
110 }
111
112
113
114
115
116
117
118
119
120
121
122 StyleBulletStar = Style{
123 Format: text.FormatDefault,
124 CharItemSingle: "★",
125 CharItemTop: "★",
126 CharItemFirst: "★",
127 CharItemMiddle: "★",
128 CharItemVertical: " ",
129 CharItemBottom: "★",
130 CharNewline: "\n",
131 LinePrefix: "",
132 Name: "StyleBulletStar",
133 }
134
135
136
137
138
139
140
141
142
143
144
145 StyleBulletTriangle = Style{
146 Format: text.FormatDefault,
147 CharItemSingle: "▶",
148 CharItemTop: "▶",
149 CharItemFirst: "▶",
150 CharItemMiddle: "▶",
151 CharItemVertical: " ",
152 CharItemBottom: "▶",
153 CharNewline: "\n",
154 LinePrefix: "",
155 Name: "StyleBulletTriangle",
156 }
157
158
159
160
161
162
163
164
165
166
167
168 StyleConnectedBold = Style{
169 Format: text.FormatDefault,
170 CharItemSingle: "━━",
171 CharItemTop: "┏━",
172 CharItemFirst: "┣━",
173 CharItemMiddle: "┣━",
174 CharItemVertical: "┃ ",
175 CharItemBottom: "┗━",
176 CharNewline: "\n",
177 LinePrefix: "",
178 Name: "StyleConnectedBold",
179 }
180
181
182
183
184
185
186
187
188
189
190
191 StyleConnectedDouble = Style{
192 Format: text.FormatDefault,
193 CharItemSingle: "══",
194 CharItemTop: "╔═",
195 CharItemFirst: "╠═",
196 CharItemMiddle: "╠═",
197 CharItemVertical: "║ ",
198 CharItemBottom: "╚═",
199 CharNewline: "\n",
200 LinePrefix: "",
201 Name: "StyleConnectedDouble",
202 }
203
204
205
206
207
208
209
210
211
212
213
214 StyleConnectedLight = Style{
215 Format: text.FormatDefault,
216 CharItemSingle: "──",
217 CharItemTop: "┌─",
218 CharItemFirst: "├─",
219 CharItemMiddle: "├─",
220 CharItemVertical: "│ ",
221 CharItemBottom: "└─",
222 CharNewline: "\n",
223 LinePrefix: "",
224 Name: "StyleConnectedLight",
225 }
226
227
228
229
230
231
232
233
234
235
236
237 StyleConnectedRounded = Style{
238 Format: text.FormatDefault,
239 CharItemSingle: "──",
240 CharItemTop: "╭─",
241 CharItemFirst: "├─",
242 CharItemMiddle: "├─",
243 CharItemVertical: "│ ",
244 CharItemBottom: "╰─",
245 CharNewline: "\n",
246 LinePrefix: "",
247 Name: "StyleConnectedRounded",
248 }
249
250
251
252
253
254
255
256
257
258
259
260 StyleMarkdown = Style{
261 Format: text.FormatDefault,
262 CharItemSingle: "*",
263 CharItemTop: "*",
264 CharItemFirst: "*",
265 CharItemMiddle: "*",
266 CharItemVertical: " ",
267 CharItemBottom: "*",
268 CharNewline: "<br/>",
269 LinePrefix: " ",
270 Name: "StyleMarkdown",
271 }
272
273
274
275
276
277
278
279
280
281
282
283 styleTest = Style{
284 Format: text.FormatDefault,
285 CharItemSingle: "s",
286 CharItemTop: "t",
287 CharItemFirst: "f",
288 CharItemMiddle: "m",
289 CharItemVertical: "|",
290 CharItemBottom: "b",
291 CharNewline: "\n",
292 LinePrefix: "",
293 Name: "styleTest",
294 }
295 )
296
View as plain text