update frontmatter

This commit is contained in:
Henrique Dias
2015-09-17 11:32:27 +01:00
parent d061c26caf
commit 8f31f5896c
9 changed files with 242 additions and 996 deletions

View File

@@ -36,6 +36,22 @@ func IsArray(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Array
}
func IsString(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.String
}
func IsInt(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Int
}
func IsBool(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Bool
}
func IsInterface(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Interface
}
func SplitCapitalize(name string) string {
var words []string
l := 0