https://github.com/1c3z/fileleak | 又一款文件泄露检测工具 | 33 https://github.com/dzonerzy/goWAPT | 瑞士军刀wfuzz的弟弟 | 285 https://github.com/liamg/scout | 发现Web未公开的文件目录 | 209 https://github.com/hihebark/gds | 在网站上
To be used like this $ progname --log-file /path/to/file.log --log-file /path/to/file_cpy.log -l /another/path/to/file.logvar myLogFiles *[]os.File = parser.FileList("l", "log-file", os.O_RDWR, 0600, ...)You can implement sub-commands in your CLI using parser.NewCommand...
type netFD struct { pfd poll.FD // immutable until Close family int sotype int isConnected bool // handshake completed or use of association with peer net string laddr Addr raddr Addr } // FD is a file descriptor. The net and os packages use this type as a // field of a larger ...
package mainimport ( "io/ioutil" "log" "os" "runtime" "syscall")type File struct{ d int }func main() { file, err := ioutil.TempFile("", "keepalive") if err != nil { log.Fatal(err) } file.Write([]byte("keepalive")) file.Close() defer os.Remove(file.Name()) p := ...
在Golang官网中对于WaitGroup介绍是A WaitGroup must not be copied after first use,在 WaitGroup 第一次使用后,不能被拷贝 应用示例: funcmain(){wg:= sync.WaitGroup{}fori:=0; i <5; i++ { wg.Add(1)gofunc(wg sync.WaitGroup, iint) { ...
Notice how — for the failed test cases — we get the relevant failure message and filename and line number in the output? It also worth pointing out that when we use the t.Errorf() function to mark a test as failed, it doesn’t cause go test to immediately exit. All the other ...
There are many instances of people attempting to use thisrstripapproach to strip off a file extension. For instance, you might be converting an image from one filetype to another, and need to construct the final path. Or you might want to rename a bunch of files to have consistent extension...
How to use it? There are 3 ways to use it, as follows: go test -race pkg-name go run -race file-name.go go run race . go build -race cmd-name As I mentioned above, we have known how to detect race conditions, let’s make our hands dirty....
Go's race detector), but these present another tool to use and learn about, are incomplete (...
forked from不在乎y/govcl 确定同步? 同步操作将从不在乎y/govcl强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!! 确定后同步将在后台操作,完成时将刷新页面,请耐心等待。 删除在远程仓库中不存在的分支和标签 同步Wiki(当前仓库的 wiki 将会被覆盖!) ...