├── .gitignore ├── README.md ├── cfg.example.json ├── control ├── g ├── config.go └── const.go ├── handler └── home_hander.go ├── http ├── cookie │ └── cookie.go ├── errors │ └── errors.go ├── helper │ └── helper.go ├── http.go ├── middleware │ ├── logger.go │ └── recovery.go ├── param │ └── param.go ├── render │ └── render.go └── routes.go ├── init ├── main.go ├── model └── example.go ├── store └── mysql.go └── views ├── common └── error.html └── home └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | cfg.json 2 | Toruk 3 | /var/* -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/README.md -------------------------------------------------------------------------------- /cfg.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/cfg.example.json -------------------------------------------------------------------------------- /control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/control -------------------------------------------------------------------------------- /g/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/g/config.go -------------------------------------------------------------------------------- /g/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/g/const.go -------------------------------------------------------------------------------- /handler/home_hander.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/handler/home_hander.go -------------------------------------------------------------------------------- /http/cookie/cookie.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/cookie/cookie.go -------------------------------------------------------------------------------- /http/errors/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/errors/errors.go -------------------------------------------------------------------------------- /http/helper/helper.go: -------------------------------------------------------------------------------- 1 | package helper 2 | 3 | func Example() string { 4 | return "good luck" 5 | } 6 | -------------------------------------------------------------------------------- /http/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/http.go -------------------------------------------------------------------------------- /http/middleware/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/middleware/logger.go -------------------------------------------------------------------------------- /http/middleware/recovery.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/middleware/recovery.go -------------------------------------------------------------------------------- /http/param/param.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/param/param.go -------------------------------------------------------------------------------- /http/render/render.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/render/render.go -------------------------------------------------------------------------------- /http/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/http/routes.go -------------------------------------------------------------------------------- /init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/init -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/main.go -------------------------------------------------------------------------------- /model/example.go: -------------------------------------------------------------------------------- 1 | package model 2 | -------------------------------------------------------------------------------- /store/mysql.go: -------------------------------------------------------------------------------- 1 | package store 2 | -------------------------------------------------------------------------------- /views/common/error.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/710leo/toruk/HEAD/views/common/error.html -------------------------------------------------------------------------------- /views/home/index.html: -------------------------------------------------------------------------------- 1 | hello! --------------------------------------------------------------------------------