Skip to content

Instantly share code, notes, and snippets.

@lipghee
lipghee / README.md
Created October 30, 2017 04:09 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@lipghee
lipghee / MixedWebHosting.go
Created September 27, 2017 02:44 — forked from guinso/MixedWebHosting.go
Example hosting Golang web server where supporting both static file and dynamic request (REST)
/**
This web server serve 2 different type request: [static file] and [dynamic path]
[Static file] URL path: /*
[Dynamic Path] URL path: /api/*
Preparation:
1) Create "static-files" directory to place all static file like index.html
2) Create "dynamic-files" diectory to place all dynamic or hidden logical files, example invoice.pdf
3) Place "index.html" at root of "static-files" directory
4) Place "neon.jpg" (any kind of JPEG file) at root of "dynamic-files" directory