gin

command module
v0.0.0-...-7e856a0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: MIT Imports: 12 Imported by: 0

README

该项目是在 https://github.com/codegangsta/gin 的基础之上做的一些修改。目的是在开发环境的时候,可以实现监听项目目录里面的go代码的变化,并自动重新编译文件,并运行它。以达到测试环境按保存的代码自动编译文件的效果。

安装

go get -u -v github.com/freshcn/gin

使用

安装了后,默认情况下,你只需要在go项目的根目录运行gin命令就会自动监听你的项目的变化,并自动编译文件了。

默认会生成文件名为gin-bin的可执行文件在你的项目的根目录,建议你将这个文件添加到你的.gitignore文件里面。

高级使用

在项目的根目录使用创建一个文件.env在里面可以按ini格式来配置项目运行时的环境变量。如:

DEBUG=true
PORT=8888

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

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