views

package
v0.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Config  *config.Config
	Request *http.Request
	Query   url.Values
}

func NewContext

func NewContext(config *config.Config, request *http.Request) *Context

func (*Context) AppendQuery

func (c *Context) AppendQuery(keyValue ...string) string

func (*Context) JSONQuery

func (c *Context) JSONQuery() string

func (*Context) URLWithExtraQuery

func (c *Context) URLWithExtraQuery(baseUrl string, extraKeyValues ...string) templ.SafeURL

URLWithExtraQuery creates a query based from baseUrl with queries joined between current context and extraQueries.

extraKeyValues is an alternating key-value pair.

Directories

Path Synopsis
devices

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL