This commit is contained in:
Henrique Dias
2015-09-17 21:26:06 +01:00
parent edf0a453a3
commit d847909da8
10 changed files with 236 additions and 81 deletions

View File

@@ -52,6 +52,10 @@ func IsInterface(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Interface
}
func IsMarkdownFile(filename string) bool {
return strings.HasSuffix(filename, ".markdown") || strings.HasSuffix(filename, ".md")
}
func SplitCapitalize(name string) string {
var words []string
l := 0