# golang-fave ## Usage ``` Usage of ./fave: -debug debug mode with ignoring log files -dir string virtual hosts directory -host string server host (default "0.0.0.0") -port int server port (default 8080) ``` ## Hosts structure ``` hosts ├── localhost # Main host directory ├──── config # Config directory ├────── mysql.json # MySQL config file ├──── htdocs # Public http files ├──── logs # Logs dir ├────── access.log # Access log file ├────── error.log # Error log file ├──── template # Engine templates ├────── footer.html # Footer ├────── header.html # Header ├────── index.html # Template for index page ├────── page.html # Template for any other pages ├────── sidebar.html # Can be included in templates └──── tmp # Temporary dir for session files ``` Unlimited hosts count. Template variables in [Wiki](https://github.com/vladimirok5959/golang-fave/wiki) or [here](https://github.com/vladimirok5959/golang-fave/wiki/Variables-for-template-($.Data)) and [here](https://github.com/vladimirok5959/golang-fave/wiki/Variables-for-template-($.System)). ## Development * **make** - vet, test, build and run in debug mode locally * **make build** - build release for Linux, Mac OS X and Windows * **make format** - format all code by gofmt utility * **make update** - get all dependencies and put to vendor folder