controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home(c *gin.Context)

Home renders the home page using the home.html template.

Types

type PostController

type PostController struct{}

PostController handles CRUD operations for posts.

func (*PostController) Create

func (ctrl *PostController) Create(c *gin.Context)

func (*PostController) Destroy

func (ctrl *PostController) Destroy(c *gin.Context)

func (*PostController) Edit

func (ctrl *PostController) Edit(c *gin.Context)

func (*PostController) Index

func (ctrl *PostController) Index(c *gin.Context)

func (*PostController) Show

func (ctrl *PostController) Show(c *gin.Context)

func (*PostController) Store

func (ctrl *PostController) Store(c *gin.Context)

func (*PostController) Update

func (ctrl *PostController) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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