1 parent
ae61d5b6aa
commit
4829870890
25 files changed
+8783
-546
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