make updates

This commit is contained in:
Henrique Dias committed 2016-06-25 21:57:10 +01:00
1 parent 4274a181a5
commit 669cb2c4ae
32 files changed
+997 -211

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
}