holidaysapi

package module
v0.0.0-...-958fc9f Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
}

Handler provides a holiday api.

func NewHandler

func NewHandler() *Handler

func (*Handler) ServeHTTP

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

type Holiday

type Holiday struct {
	Date string `json:"date"`
	Name string `json:"name"`
}

Holiday is a holiday.

type Response

type Response struct {
	Holidays []Holiday `json:"holidays"`
}

Response is the response of Handler.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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