Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReturnGeoNetHeader ¶
func ReturnGeoNetHeader(config HeaderConfig) (template.HTML, error)
ReturnGeoNetHeader returns HTML for the main GeoNet header that can be inserted into a webpage. The config is used to set certain properties.
Types ¶
type Active ¶
type Active struct {
Home, Earthquake, Landslide, Tsunami, Volcano, DataDiscovery, DataTypes, DataAccess bool
}
type HeaderConfig ¶
type HeaderConfig struct {
// The origin to be used at the beginning of the links in the header.
// If nil, relative links are used.
Origin string
// A struct that defines which dropdown menu is currently "active", ie: the
// dropdown menu that the current page belongs to.
Active
// The HTML for the GeoNet logo and home/news icons. These should not be changed.
HomeIcon template.HTML
NewsIcon template.HTML
GeoNetLogo template.HTML
}
Click to show internal directories.
Click to hide internal directories.