A skeleton go web server with embedded bootstrap and font awesome!
I seem to be making a few of these lately and I thought, why not make a template.
What's in the box?
- Skeleton go webserver that serves
index.html
as a template (main.go
) - Request logger middleware and some stuff to help handle content negotiation (
util.go
) - Bootstrap 5.1.0 bundle version
- JQuery 3.6.0 slim version
- Font Awesome Free 5.15.4 solid font
- Sort yourself out a new, empty repository somewhere, let's say I've created
github.com/dedelala/my-cool-project
git clone https://github.com/dedelala/strap.git my-cool-project
cd my-cool-project
./init.sh github.com/dedelala/my-cool-project
The script assumes you push git over ssh and probably only works with github or gitlab. Otherwise, you're on your own.