-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshortcuts.go
44 lines (35 loc) · 918 Bytes
/
shortcuts.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
36
37
38
39
40
41
42
43
44
package antlion
import (
"github.com/endigma/antlion/blocks"
)
func Paragraph(content string) blocks.ParagraphBlock {
return blocks.ParagraphBlock{Content: content}
}
func Header(content string) blocks.HeaderBlock {
return blocks.HeaderBlock{Content: content}
}
func Button(content string, href string) blocks.ButtonBlock {
return blocks.ButtonBlock{Content: content, Href: href}
}
func Code(label string, code string) blocks.CodeBlock {
return blocks.CodeBlock{Code: code, Label: label}
}
func Markdown(content string) blocks.MarkdownBlock {
return blocks.MarkdownBlock{
Content: content,
}
}
func Div(style string, children ...blocks.Block) blocks.DivBlock {
return blocks.DivBlock{
Children: children,
Style: style,
}
}
func Divider() blocks.DividerBlock {
return blocks.DividerBlock{}
}
func Alert(content string) blocks.AlertBlock {
return blocks.AlertBlock{
Content: content,
}
}