func SliceToMap(kv []interface{}) map[string]interface{} {
	values := make(map[string]interface{})
	// take care that we don't overrun - there must be two next arguments
	for i := 0; i+1 < len(kv); i += 2 {
		key, ok := kv[i].(string)
		// ignore non-string keys
		if ok {
			values[key] = kv[i+1]
		}
	}
	return values
}
// SliceToMap converts a list of interleaved key-value pairs to a map.
SliceToMap converts a list of interleaved key-value pairs to a map.
// SliceToMap converts a list of interleaved key - value pairs to a map .
func SliceToMap(kv []interface{}) map[string]interface{} {
	values := make(map[string]interface{})
	for i := 0; i+1 < len(kv); i += 2 {
		key, ok := kv[i].(string)
		if ok {
			values[key] = kv[i+1]
		}
	}
	return values
}
func SliceToMap ( kv [ ] interface { } ) map [ string ] interface { } { values := make ( map [ string ] interface { } ) for i := 0 ; i + 1 < len ( kv ) ; i += 2 { key , ok := kv [ i ] . ( string ) if ok { values [ key ] = kv [ i + 1 ] } } return values }
SliceToMap converts a list of interleaved key-value pairs to a map.
SliceToMap converts a list of interleaved key - value pairs to a map .
// take care that we don't overrun - there must be two next arguments // ignore non-string keys