more updates and renaming
This commit is contained in:
24 files changed
+4823
-4729
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user