Patch a bug on writing to stdout, and add clearer error on openning data files

This commit is contained in:
Eric Coissac committed 2024-08-13 09:45:28 +02:00
1 parent bdb96dda94
commit 31bfc88eb9
43 files changed
+1654 -696

No files matched your search

+2 -1
View File
@@ -183,7 +183,8 @@ func WriteFasta(iterator obiiter.IBioSequence,
// The function returns the same bio sequence iterator and an error if any occurred.
func WriteFastaToStdout(iterator obiiter.IBioSequence,
options ...WithOption) (obiiter.IBioSequence, error) {
options = append(options, OptionDontCloseFile())
// options = append(options, OptionDontCloseFile())
options = append(options, OptionCloseFile())
return WriteFasta(iterator, os.Stdout, options...)
}