blog

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemplateRoutes

func TemplateRoutes(mux *http.ServeMux, receiver RoutesReceiver)

Types

type App

type App struct{}

func (*App) Article

func (*App) Article(id int) Article

type Article

type Article struct {
	Title   string
	Content string
	Error   error
}

type RoutesReceiver

type RoutesReceiver interface {
	Article(id int) Article
}

type TemplateData

type TemplateData[T any] struct {
	Request *http.Request
	Result  T
}

Directories

Path Synopsis
cmd
server command
internal
fake
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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