mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 08:40:26 +00:00
Changes to be committed:
modified: .gitignore new file: pkg/obitax/default_taxonomy.go modified: pkg/obitax/taxon.go modified: pkg/obitax/taxonnode.go modified: pkg/obitax/taxonomy.go modified: pkg/obitax/taxonset.go modified: pkg/obitax/taxonslice.go modified: pkg/obitools/obifind/iterator.go modified: pkg/obitools/obifind/options.go
This commit is contained in:
@@ -30,6 +30,10 @@ func (taxon *Taxon) String() string {
|
||||
return taxon.Node.String(taxon.Taxonomy.code)
|
||||
}
|
||||
|
||||
func (taxon *Taxon) HasScientificName() bool {
|
||||
return taxon != nil && taxon.Node.HasScientificName()
|
||||
}
|
||||
|
||||
// ScientificName returns the scientific name of the Taxon.
|
||||
// It retrieves the scientific name from the underlying TaxNode associated with the taxon.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user