tirimia / serverfi

Serve folders - the portable way!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server-fi

Epic logo comprised of a Gopher wearing a crown that resembles the Nix snowflake. It is also throwing tiny gophers that all carry tiny cardboard boxes to symbolize how it packages files in other go binaries

What is this ?

I wanted to have an easy way to bundle and serve folders.

Serverfi helps by offering exactly that: a simple and convenient way to take a folder and get a binary that will serve the contents of said folder over HTTP.

Goals

  • Use standard library only
  • Have fun
  • Actually work

Why was this approach chosen ?

Knew from the get-go I wanted to leverage the embed.FS feature of Golang. Thought to myself that I would need to bundle the Go compiler in my binary. Thank you, Nix, for helping me indulge in this horror.

About

Serve folders - the portable way!

License:GNU General Public License v3.0


Languages

Language:Go 71.0%Language:Nix 17.0%Language:Makefile 8.3%Language:Just 3.3%Language:HTML 0.4%