more updates and renaming

This commit is contained in:
Henrique Dias committed 2017-06-19 17:10:03 +01:00
1 parent 1c703e0364
commit 8c19482190
24 files changed
+4823 -4729

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
}