util/map.go (5 lines of code) (raw):

// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package util // IsInterfaceMap determines whether the provided interface is a map. func IsInterfaceMap(v interface{}) bool { _, ok := v.(map[string]interface{}) return ok }