mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Adds a first version of a new obidistribute command
This commit is contained in:
@@ -54,6 +54,18 @@ func InterfaceToInt(i interface{}) (val int, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func IsAnInt(i interface{}) bool {
|
||||
|
||||
switch i.(type) {
|
||||
case int,
|
||||
int8, int16, int32, int64,
|
||||
uint8, uint16, uint32, uint64:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// CopyMap makes a deep copy of a map[string]interface{}.
|
||||
func CopyMap(dest, src map[string]interface{}) {
|
||||
buf := new(bytes.Buffer)
|
||||
|
||||
Reference in New Issue
Block a user