move some stuff

This commit is contained in:
Henrique Dias committed 2016-10-22 12:07:19 +01:00
1 parent df888b604a
commit 5fce287cd2
10 files changed
+45 -44

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package variables
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
}