Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Icon ¶ added in v0.1.1
type Icon struct { Source string `json:"src"` Sizes string `json:"sizes"` Type string `json:"type,omitempty"` }
Icon represents a single icon in the web manifest.
type Manifest ¶
type Manifest struct { Name string `json:"name"` ShortName string `json:"short_name"` Description string `json:"description,omitempty"` Icons []Icon `json:"icons,omitempty"` StartURL string `json:"start_url"` Display string `json:"display"` Orientation string `json:"orientation,omitempty"` Language string `json:"lang,omitempty"` ThemeColor string `json:"theme_color,omitempty"` BackgroundColor string `json:"background_color,omitempty"` TextDirection string `json:"dir,omitempty"` ServiceWorker *ServiceWorker `json:"serviceworker,omitempty"` ScreenShots []ScreenShot `json:"screenshots,omitempty"` }
Manifest represents a web manifest
type ScreenShot ¶ added in v0.1.1
type ScreenShot = Icon
ScreenShot represents a screenshot definition in the web manifest.
type ServiceWorker ¶ added in v0.1.1
type ServiceWorker struct { Source string `json:"src"` Scope string `json:"scope"` UpdateViaCache string `json:"update_via_cache"` }
ServiceWorker represents a service worker definition in the web manifest.
Click to show internal directories.
Click to hide internal directories.