Henrique Dias 4829870890 more updates and renaming
Former-commit-id: 8c194821906b2170df92672fe9dfb9d710640659
2017-06-19 17:10:03 +01:00

14 lines
308 B
Go

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
}