-
Notifications
You must be signed in to change notification settings - Fork 3
/
heading.go
45 lines (37 loc) · 881 Bytes
/
heading.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
45
package elements
//Heading1 element produces an HTML heading element (<h1>)
type Heading1 struct {
Base
Text string
}
//String emit html text for Heading1
func (h1 Heading1) String() string {
return "<h1>" + h1.Text + "</h1>"
}
//Heading2 element produces an HTML heading element (<h1>)
type Heading2 struct {
Base
Text string
}
//String emit html text for Heading2
func (h2 Heading2) String() string {
return "<h2>" + h2.Text + "</h2>"
}
//Heading3 element produces an HTML heading element (<h1>)
type Heading3 struct {
Base
Text string
}
//String emit html text for Heading3
func (h3 Heading3) String() string {
return "<h3>" + h3.Text + "</h3>"
}
//Heading4 element produces an HTML heading element (<h1>)
type Heading4 struct {
Base
Text string
}
//String emit html text for Heading4
func (h4 Heading4) String() string {
return "<h4>" + h4.Text + "</h4>"
}