Forget the binary writer

This commit is contained in:
2022-02-09 22:00:38 +01:00
parent 27556ce81f
commit bd630ea512
4 changed files with 8 additions and 260 deletions

View File

@ -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:])
}