Esempio n. 1
0
File: home.go Progetto: keep94/vsafe
func (v *view) SortBy(sortBy string) *url.URL {
	return http_util.WithParams(
		v.Url,
		"sort", sortBy,
		"id", "0")
}
Esempio n. 2
0
func withId(url *url.URL, id int64) *url.URL {
	idStr := strconv.FormatInt(id, 10)
	result := *http_util.WithParams(url, "id", idStr)
	result.Fragment = idStr
	return &result
}