mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 08:40:26 +00:00
a functional new version of obifind
This commit is contained in:
@@ -84,14 +84,14 @@ func (path *TaxonSlice) String() string {
|
||||
if path.Len() > 0 {
|
||||
taxon := path.slice[path.Len()-1]
|
||||
fmt.Fprintf(&buffer, "%v@%s@%s",
|
||||
taxon.Id(),
|
||||
*taxon.Id(),
|
||||
taxon.ScientificName(),
|
||||
taxon.Rank())
|
||||
|
||||
for i := path.Len() - 2; i >= 0; i-- {
|
||||
taxon := path.slice[i]
|
||||
fmt.Fprintf(&buffer, "|%v@%s@%s",
|
||||
taxon.Id(),
|
||||
*taxon.Id(),
|
||||
taxon.ScientificName(),
|
||||
taxon.Rank())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user