mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
Forget the binary writer
This commit is contained in:
1 parent
27556ce81f
commit
bd630ea512
4 files changed
+8
-260
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package obiformats
|
||||
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obiseq"
|
||||
@@ -40,7 +41,11 @@ func _parse_json_header_(header string, annotations obiseq.Annotation) string {
|
||||
|
||||
stop++
|
||||
|
||||
json.Unmarshal([]byte(header)[start:stop], annotations)
|
||||
err := json.Unmarshal([]byte(header)[start:stop], &annotations)
|
||||
if err != nil {
|
||||
log.Fatalf("annotation parsing error on %s : %v\n", header, err)
|
||||
}
|
||||
|
||||
return strings.TrimSpace(header[stop:])
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user