more updates and renaming

Former-commit-id: 8c194821906b2170df92672fe9dfb9d710640659
This commit is contained in:
Henrique Dias
2017-06-19 17:10:03 +01:00
parent ae61d5b6aa
commit 4829870890
25 changed files with 8783 additions and 546 deletions

13
frontmatter/types.go Normal file
View File

@@ -0,0 +1,13 @@
package frontmatter
import "reflect"
// isMap checks if some variable is a map
func isMap(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Map
}
// isSlice checks if some variable is a slice
func isSlice(sth interface{}) bool {
return reflect.ValueOf(sth).Kind() == reflect.Slice
}