make updates

This commit is contained in:
Henrique Dias committed 2015-09-18 16:49:53 +01:00
1 parent f7227520ea
commit 0549bd73eb
16 files changed
+412 -334

No files matched your search

+1 -5
View File
@@ -120,15 +120,11 @@ func handleFlatValues(content interface{}, parent *frontmatter, name string) *fr
c := new(frontmatter)
c.Parent = parent
// TODO: see why isn't this working
switch reflect.ValueOf(content).Kind() {
case reflect.Bool:
c.Type = "boolean"
case reflect.Int:
case reflect.Float32:
case reflect.Float64:
case reflect.Int, reflect.Float32, reflect.Float64:
c.Type = "number"
case reflect.String:
default:
c.Type = "string"
}