Categorygithub.com/aljo242/shmeeload.xyz
modulepackage
0.0.0-20211126024450-6d5c79832cef
Repository: https://github.com/aljo242/shmeeload.xyz.git
Documentation: pkg.go.dev

# README

shmeeload.xyz

⚠️ lots of development going on. ⚠️

CI go report GoDoc Coverage license

This is my personal website.

Server backend written using Go and the gorilla/mux and gorilla/websockets packages.

  • HTTPS supported
  • TypeScript -> JavaScript pipeline for browser scripting
  • WebSockets for shmeechat
  • uses my chef repo for major functionality (https://github.com/aljo242/chef.git)

# Packages

No description provided by the author

# Functions

CopyFile copies filename src to dst.
EnsureDir checks if a dir exists and creates it if it does not exsits.
ExecuteTemplateHTML is a util func for executing an html template at path and saving the new file to newPath.
Exists is a basic file util that says if a dir or file exists.
SetupTemplates builds the template output directory, executes HTML templates, and copies all web resource files to the template output directory (.js, .ts, .js.map, .css, .html).

# Constants

DefaultConfigFile is the name of the user's config JSON file.
TemplateBaseDir is where HTML template files are located to be executed and copied to the res dir.
TemplateOutputDir is the directory all outputs of SetupTemplates will fall under.

# Structs

Client is a middleman between the websocket connection and the hub.
Hub maintains the set of active clients and broadcasts messages to the clients.