server

package
v0.0.0-...-7a63d8b Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server provides a web server for the CoffeeTalk web app. It serves static files, passes environment variables to the client through templates, and configures TLS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(address string, staticDir fs.FS, templatesDir fs.FS) error

Serves a website from the given static and template directories on the given address. Keeps running until an error occurs. Uses TLS if in production environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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