page

package
v0.0.0-...-92cbc5b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.3.906

templ: version: v0.3.906

templ: version: v0.3.906

templ: version: v0.3.906

templ: version: v0.3.906

templ: version: v0.3.906

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dashboard

func Dashboard(title string, user *data.User, userCount int, models []string) templ.Component

func Error

func Error(title string, user *data.User, e HttpError) templ.Component

func Intro

func Intro(title string, user *data.User, year int) templ.Component

func Login

func Login(title string, user *data.User) templ.Component

func Logout

func Logout(title string, user *data.User) templ.Component

func Table

func Table(title, model string, user *data.User, table string, paginationLinks []templ.Component) templ.Component

Types

type HttpError

type HttpError struct {
	StatusCode  int    `json:"status_code"`
	Message     string `json:"message"`
	Description string `json:"description"`
}

func NewHttpError

func NewHttpError(statusCode int, opts ...OptionFunc) HttpError

func (*HttpError) Error

func (e *HttpError) Error() string

type OptionFunc

type OptionFunc func(*HttpError)

func WithDescription

func WithDescription(description string) OptionFunc

func WithMessage

func WithMessage(message string) OptionFunc

Jump to

Keyboard shortcuts

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