Documentation ¶
Index ¶
- type Icon
- type Manifest
- func (manifest Manifest) Render() []byte
- func (manifest *Manifest) SetDescription(description string)
- func (manifest *Manifest) SetIcon(path string)
- func (manifest *Manifest) SetName(name string)
- func (manifest *Manifest) SetShortName(name string)
- func (manifest *Manifest) SetThemeColor(c color.Color)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Icon ¶
type Icon struct { Source string `json:"src"` Sizes string `json:"sizes"` Type string `json:"type,omitempty"` }
Icon is an app-manifest icon.
type Manifest ¶
type Manifest struct { Name string `json:"name"` ShortName string `json:"short_name"` StartURL string `json:"start_url"` Display string `json:"display"` BackgroundColor string `json:"background_color"` Description string `json:"description"` ThemeColor string `json:"theme_color"` Icons []Icon `json:"icons"` }
Manifest is a webapp manifest.
func (*Manifest) SetDescription ¶
SetDescription sets the description of the application.
func (*Manifest) SetIcon ¶
SetIcon sets the icon for the application to be the image at the given path.
func (*Manifest) SetShortName ¶
SetShortName set the short name of the application.
func (*Manifest) SetThemeColor ¶
SetThemeColor sets the theme color of the application.
Click to show internal directories.
Click to hide internal directories.