package main import ( "github.com/labstack/echo/v4" "net/http" ) type ManifestIcon struct { Src string `json:"src"` Type string `json:"type"` Sizes string `json:"sizes"` } type Manifest struct { ShortName string `json:"short_name"` Name string `json:"name"` ThemeColor string `json:"theme_color"` BackgroundColor string `json:"background_color"` Display string `json:"display"` Orientation string `json:"orientation"` Scope string `json:"scope"` StartUrl string `json:"start_url"` Icons []ManifestIcon `json:"icons"` } func manifestController(c echo.Context) error { manifest := &Manifest{ ShortName: "RWM", Name: "Remote i3WM", ThemeColor: "#1e3650", BackgroundColor: "#ffffff", Display: "standalone", Orientation: "portrait-primary", Scope: "/", StartUrl: "/", Icons: []ManifestIcon{ ManifestIcon{ Src: "/static/img/icon.png", Type: "image/png", Sizes: "96x96", }, }, } return c.JSONPretty(http.StatusOK, manifest, " ") }