1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
webpage := hb.Webpage().
SetTitle("My First Webpage with Golang UI").
Meta(
hb.Meta().
Attr("name", "viewport").
Attr("content", "width=device-width, initial-scale=1"),
).
StyleURLs([]string{
cdn.BootstrapCss_5_3_0(),
}).
ScriptURLs([]string{
cdn.BootstrapJs_5_3_0(),
}).
Child(hb.Div().
Class("container").
Child(hb.Div().
Class("row").
Child(hb.Div().
Class("col-md-12").
Child(hb.Heading1().Class("display-4").HTML("Hello World!")).
Child(hb.Paragraph().HTML("This is a webpage using Bootstrap CSS.")))))
html := webpage.ToHTML() |