mini.go
func get(values map[string]interface{}, key string) interface{} {
	if len(key) == 0 || values == nil {
		return nil
	}

	key = strings.ToLower(key)
	val, ok := values[key]

	if ok {
		switch val.(type) {
		case []interface{}:
			return nil
		default:
			return val
		}
	}

	return nil
}
func get(values map[string]interface{}, key string) interface{} {
	if len(key) == 0 || values == nil {
		return nil
	}

	key = strings.ToLower(key)
	val, ok := values[key]

	if ok {
		switch val.(type) {
		case []interface{}:
			return nil
		default:
			return val
		}
	}

	return nil
}
func get ( values map [ string ] interface { } , key string ) interface { } { if len ( key ) == 0 || values == nil { return nil } key = strings . ToLower ( key ) val , ok := values [ key ] if ok { switch val . ( type ) { case [ ] interface { } : return nil default : return val } } return nil }
//Return non-array values
Return non - array values