mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
First commit
This commit is contained in:
15
pkg/obitax/taxonset.go
Normal file
15
pkg/obitax/taxonset.go
Normal file
@ -0,0 +1,15 @@
|
||||
package obitax
|
||||
|
||||
type TaxonSet map[int]*TaxNode
|
||||
|
||||
func (set *TaxonSet) Get(i int) *TaxNode {
|
||||
return (*set)[i]
|
||||
}
|
||||
|
||||
func (set *TaxonSet) Length() int {
|
||||
return len(*set)
|
||||
}
|
||||
|
||||
func (set *TaxonSet) Inserts(taxon *TaxNode) {
|
||||
(*set)[taxon.taxid] = taxon
|
||||
}
|
Reference in New Issue
Block a user