tool

module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 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

sskey

生成AES密文的工具。

可以通过生成go语言代码来混淆AES的key与iv的值,让其不可分析。

Usage

    sskey
        -l              List all saved keys
        -c keyName      Create a new key and save it
        -t keyName      Test key
        -e [keyName] data       Encrypt data by specified key or default key
        -d [keyName] data       Decrypt data by specified key or default key
        -o keyName      Output golang code
        -db keyName     db configure Output golang code
        -redis keyName  redis configure Output golang code
        
    Samples:
        sskey -l
        sskey -c aaa
        sskey -t aaa
        sskey -e 123456
        sskey -d vcg9B/GX3Tqf1EWfpfDeMw==
        sskey -e aaa 123456
        sskey -d aaa gAx9Wq7YN85WKSFj7kBcHg==
        sskey -o aaa
        sskey -db aaa
        sskey -redis aaa    

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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