tool

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT

README

Install

go get github.com/ssgo/tool
go install github.com/ssgo/tool/gowatch
go install github.com/ssgo/tool/gomod

Update

go get -u github.com/ssgo/tool/gowatch
go get -u github.com/ssgo/tool/gomod

gowatch

监视文件夹,自动测试或运行

Usage

gowatch [-p paths] [-t] [-b] [...]
-p	指定监视的路径,默认为 ./,支持逗号隔开的多个路径
-r	执行当前目录中的程序,相当于 go run *.go
-t	执行tests目录中的测试用例,相当于 go test ./tests
-b	执行性能测试,相当于 go -bench .*,需要额外指定 -t 或 test 参数
...	可以使用所有 go 命令的参数

Samples:

gowatch -r
gowatch -t
gowatch -t -b
gowatch -p ../ -t
gowatch run start.go
gowatch run samePackages start.go
gowatch test
gowatch test ./testcase

gomod

辅助管理版本的工具

Usage

gowatch [-p paths] [-t] [-b] [...]
	gomod
	-v	查看当前项目的版本列表
	-u	版本号+1并提交

Samples:

	gomod -v
	gomod -u
	gomod -u v1.2.1

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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