simplegohttpd

command module
v0.0.0-...-380fce2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 9 Imported by: 0

README

Another Simple go httpd Web Server

A simple go based http daemon that reads serves file content. This is more of a learning exercise than anything useful.

Loads static content from local directory and writes it out based on uri path. If no file matches URI path, returns a 404 page.

Includes SB Admin bootstrap template as content that it loads and serves.

Build

go build httpd.go
Run

browse http://localhost:82/index.html or http://localhost/foo

Structure

  • httpd.go - webserver code. webserver doesn't use any of the built in template functionality (yet. crawl. walk. run. still crawling). wanted to start with a very basic i/o implementation and build from there.
  • www - static html directory. anything placed in this directory will be served if matching the url path. extract the contents of sb_admin_sample_content.zip in place here to run the SB Admin demo using this web server.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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