repochecker: Use SetWriteFileFunc to avoid writing any file on disk
This commit is contained in:
parent
8723f500cc
commit
c2996b9f0a
2 changed files with 14 additions and 9 deletions
11
repochecker/null.go
Normal file
11
repochecker/null.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package main
|
||||
|
||||
type nullFileWriter struct{}
|
||||
|
||||
func (fw *nullFileWriter) Write(p []byte) (int, error) {
|
||||
return len(p), nil
|
||||
}
|
||||
|
||||
func (fw *nullFileWriter) Close() error {
|
||||
return nil
|
||||
}
|
Reference in a new issue