aadd first files based on caddy-filemanager
Former-commit-id: 20baeeb41a
This commit is contained in:
1 parent
f185b9893b
commit
1cea7a383d
28 files changed
+2483
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
import "reflect"
|
||||
|
||||
// IsMap checks if some variable is a map
|
||||
func IsMap(sth interface{}) bool {
|
||||
return reflect.ValueOf(sth).Kind() == reflect.Map
|
||||
}
|
||||
|
||||
// IsSlice checks if some variable is a slice
|
||||
func IsSlice(sth interface{}) bool {
|
||||
return reflect.ValueOf(sth).Kind() == reflect.Slice
|
||||
}
|
||||
Reference in new issue
Block a user