web

package
v0.0.0-...-6886941 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main contains the http server

Types

type Page

type Page struct {
	ID    string
	Title string
	Body  string
	Posts []Post
}

Page represents a webpage on the blog

type Post

type Post struct {
	ID    string `json:"-"`
	Title string `json:"title"`
	Date  string `json:"date"`
	Body  string `json:"-"`
}

Post represents a blog post

Jump to

Keyboard shortcuts

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