INNER CODE UNIT · Go

string

GoAdminGroup/go-admin · context/context.go:350

func (ctx *Context) QueryDefault(key, def string) string {
	value := ctx.Query(key)
	if value == "" {
		return def
	}
	return value
}

// Lang get the query parameter of url with given key __ga_lang.
func (ctx *Context) Lang() string {
	return ctx.Query("__ga_lang")
}

// Theme get the request theme with given key __ga_theme.
func (ctx *Context) Theme() string {
	queryTheme := ctx.Query(ThemeKey)
	if queryTheme != "" {
		return queryTheme

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…