mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-10 01:24:41 +00:00
Adds to every obitools the ability to save in gzip compressed files
This commit is contained in:
1 parent
1a08ad4254
commit
56722895e4
9 files changed
+85
-66
No files matched your search
@@ -110,17 +110,17 @@ func OptionDontCloseFile() WithOption {
|
||||
return f
|
||||
}
|
||||
|
||||
func OptionsAppendFile() WithOption {
|
||||
func OptionsAppendFile(append bool) WithOption {
|
||||
f := WithOption(func(opt Options) {
|
||||
opt.pointer.appendfile = true
|
||||
opt.pointer.appendfile = append
|
||||
})
|
||||
|
||||
return f
|
||||
}
|
||||
|
||||
func OptionsCompressed() WithOption {
|
||||
func OptionsCompressed(compressed bool) WithOption {
|
||||
f := WithOption(func(opt Options) {
|
||||
opt.pointer.compressed = true
|
||||
opt.pointer.compressed = compressed
|
||||
})
|
||||
|
||||
return f
|
||||
|
||||
Reference in new issue
Block a user