Handlers WIP - Convert now working

This commit is contained in:
spf13
2014-10-20 20:15:33 -04:00
parent 30d4a26ba0
commit dfb8482569
4 changed files with 80 additions and 31 deletions

View File

@@ -36,6 +36,15 @@ func FindAvailablePort() (*net.TCPAddr, error) {
return nil, err
}
func InStringArray(arr []string, el string) bool {
for _, v := range arr {
if v == el {
return true
}
}
return false
}
func GuessType(in string) string {
switch strings.ToLower(in) {
case "md", "markdown", "mdown":