views

package
v0.0.0-...-0444a63 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

views/notfound.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

func About(c *fiber.Ctx) error

Home renders the home page

func Home

func Home(c *fiber.Ctx) error

Home renders the home page

func Images

func Images(c *fiber.Ctx) error

func Item

func Item(c *fiber.Ctx) error

Item renders the item detail page

func Items

func Items(c *fiber.Ctx) error

func NewItem

func NewItem(c *fiber.Ctx) error

NewItem renders the new item page

func NewUser

func NewUser(c *fiber.Ctx) error

NewUser renders the new item page

func NotFound

func NotFound(c *fiber.Ctx) error

func SubmitItem

func SubmitItem(c *fiber.Ctx) error

CreateItem handles the form submission for creating a new item

func SubmitUser

func SubmitUser(c *fiber.Ctx) error

// CreateItem handles the form submission for creating a new item

func Users

func Users(c *fiber.Ctx) error

Types

type HomeData

type HomeData struct {
	Title   string
	Address string
}

HomeData defines the data structure for the home page template

type ItemData

type ItemData struct {
	Title       string
	Address     string
	Item        models.Item
	ImageUrl    string
	Image       string
	Description string
}

ItemData defines the data structure for the item detail template

type ItemsData

type ItemsData struct {
	Title   string
	Address string
	Items   []models.Item
}

HomeData defines the data structure for the home page template

type UsersData

type UsersData struct {
	Title   string
	Address string
	Users   []models.User
}

HomeData defines the data structure for the home page template

Jump to

Keyboard shortcuts

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