Source File
notfound.go
Belonging Package
github.com/pancsta/go-app/pkg/app
package appvar (// NotFound is the ui element that is displayed when a request is not// routed.NotFound UI = ¬Found{})type notFound struct {CompoIcon string}func ( *notFound) (Context) {:= Window().Get("document").Call("getElementsByTagName", "link")for := 0; < .Length(); ++ {:= .Index():= .Call("getAttribute", "rel")if .String() == "icon" {:= .Call("getAttribute", "href").Icon = .String()return}}}func ( *notFound) () UI {return Div().Class("goapp-app-info").Body(Div().Class("goapp-notfound-title").Body(Text("4"),Img().Class("goapp-logo").Alt("0").Src(.Icon),Text("4"),),P().Class("goapp-label").Text("Not Found"),)}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |