First commit

This commit is contained in:
2022-01-13 23:27:39 +01:00
parent dab6549cad
commit f53bf1b804
93 changed files with 11042 additions and 0 deletions

15
pkg/obitax/taxonset.go Normal file
View 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
}