handler

package
v0.0.0-...-2f510de Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HoroscopeHandler

func HoroscopeHandler(w http.ResponseWriter, r *http.Request) error

HoroscopeHandler serves each horoscope page

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request) error

IndexHandler serves the front page

func StarsignHandler

func StarsignHandler(w http.ResponseWriter, r *http.Request) error

StarsignHandler serves the "What's my starsign?" page

Types

type Handler

type Handler func(w http.ResponseWriter, r *http.Request) error

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Horoscope

type Horoscope struct {
	Date     string
	Text     string
	Live     int
	Laugh    int
	Love     int
	Luck     int
	Bullshit int
}

Jump to

Keyboard shortcuts

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