mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
First attempt for obiconsensus... The graph traversing algorithm is too simple
Former-commit-id: 0456e6c7fd55d6d0fcf9856c40386b976b912cba
This commit is contained in:
16
pkg/obiutils/path.go
Normal file
16
pkg/obiutils/path.go
Normal file
@ -0,0 +1,16 @@
|
||||
package obiutils
|
||||
|
||||
import (
|
||||
"path"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func RemoveAllExt(p string) string {
|
||||
|
||||
for ext := path.Ext(p); len(ext) > 0; ext = path.Ext(p) {
|
||||
p = strings.TrimSuffix(p, ext)
|
||||
}
|
||||
|
||||
return p
|
||||
|
||||
}
|
Reference in New Issue
Block a user