guestbook

package module
v0.0.0-...-5deee31 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 7 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(w http.ResponseWriter, r *http.Request)

func Post

func Post(w http.ResponseWriter, r *http.Request)

Types

type IndexTemplate

type IndexTemplate struct {
	Title       string
	Description string
	Count       int
	Messages    []*Message
}

IndexTemplate is a structure of index template.

type Message

type Message struct {
	ID        int64     `datastore:"-"`
	Name      string    `datastore:"name"`
	Message   string    `datastore:"message"`
	CreatedAt time.Time `datastore:"createdAt"`
}

Message is a structure of messages to be posted to guest book.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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