Documentation ¶
Index ¶
- type Script
- type Style
- type Webpage
- func (webpage *Webpage) AddGA(gaID string)
- func (webpage *Webpage) AddGTM(gtmID string)
- func (webpage *Webpage) AddJavaScriptRedirect(redirectURI string)
- func (webpage *Webpage) AddJavaScriptVariable(name string, value interface{}) (err error)
- func (webpage *Webpage) Clone() (*Webpage, error)
- func (webpage *Webpage) SetRedirect(redirectURI string)
- func (webpage *Webpage) WriteToBuffer(outputHTML *bytes.Buffer) (err error)
- func (webpage *Webpage) WriteToBytes() (outputHTML []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Webpage ¶
type Webpage struct { Meta [][]html.Attribute Links [][]html.Attribute Styles []Style Scripts []Script Robots string Viewport string Charset string Title string Description string Author string // contains filtered or unexported fields }
func (*Webpage) AddJavaScriptRedirect ¶
func (*Webpage) AddJavaScriptVariable ¶
func (*Webpage) SetRedirect ¶
func (*Webpage) WriteToBuffer ¶
func (*Webpage) WriteToBytes ¶
Click to show internal directories.
Click to hide internal directories.