more updates and renaming

Former-commit-id: 8c19482190
This commit is contained in:
Henrique Dias committed 2017-06-19 17:10:03 +01:00
1 parent ae61d5b6aa
commit 4829870890
25 files changed
+8783 -546

No files matched your search

+13
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
}