views

package
v0.0.0-...-0422bbd Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.2.663

templ: version: v0.2.663

templ: version: v0.2.663

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Csrf

func Csrf() templ.Component

func Index

func Index() templ.Component

func Toast

func Toast(body ToastBody, oob bool, c context.Context, w http.ResponseWriter, status int) error

func ToastEl

func ToastEl(data ToastBody, oob bool) templ.Component

Types

type HttpError

type HttpError struct {
	Code        int
	Msg         string
	Description string
}

type RenderError

type RenderError struct {
	Err bool
	Msg string
}

type ToastBody

type ToastBody struct {
	Msg  string
	Type ToastType
}

type ToastType

type ToastType string
const (
	ToastSuccess ToastType = "success"
	ToastError   ToastType = "error"
	ToastWarning ToastType = "warning"
)

Directories

Path Synopsis
templ: version: v0.2.663
templ: version: v0.2.663
templ: version: v0.2.663
templ: version: v0.2.663
appointments
templ: version: v0.2.663
templ: version: v0.2.663
login
templ: version: v0.2.663
templ: version: v0.2.663
templ: version: v0.2.663
templ: version: v0.2.663
templ: version: v0.2.663
templ: version: v0.2.663

Jump to

Keyboard shortcuts

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