mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Adds to every obitools the ability to save in gzip compressed files
This commit is contained in:
@ -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