add editor and frontmatter thing

This commit is contained in:
Henrique Dias committed 2016-06-23 23:21:44 +01:00
1 parent 8b7c83539a
commit ddc6839d24
13 files changed
+897 -282

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package variables
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
}