maxence-charriere / go-app

A package to build progressive web apps with Go programming language and WebAssembly.

Home Page:https://go-app.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Query parameters in OnNav(ctx app.Context)

suntong opened this issue · comments

Following up with #869 -- how to get Query parameters in OnNav(ctx app.Context), which took the following form before in V6:

func (c *city) OnNav(u *url.URL) {
	key := u.Query().Get("city")

url := ctx.Page().URL()