This commit is contained in:
Henrique Dias
2015-09-15 11:59:48 +01:00
parent e3ac3a6a4b
commit 85aea63307
9 changed files with 354 additions and 36 deletions

View File

@@ -27,6 +27,14 @@ func IsMap(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Map
}
func IsSlice(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Slice
}
func IsArray(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Array
}
func SplitCapitalize(name string) string {
var words []string
l := 0