bin-templater/template/templating.go
func pairs(values ...interface{}) (map[interface{}]interface{}, error) {
	if len(values)%2 != 0 {
		return nil, errors.New("Missing value on key/value Pairs call")
	}
	pairs := make(map[interface{}]interface{})
	for i := 0; i < len(values); i += 2 {
		key := values[i]
		pairs[key] = values[i+1]
	}
	return pairs, nil
}
func pairs(values ...interface{}) (map[interface{}]interface{}, error) {
	if len(values)%2 != 0 {
		return nil, errors.New("Missing value on key/value Pairs call")
	}
	pairs := make(map[interface{}]interface{})
	for i := 0; i < len(values); i += 2 {
		key := values[i]
		pairs[key] = values[i+1]
	}
	return pairs, nil
}
func pairs ( values ... interface { } ) ( map [ interface { } ] interface { } , error ) { if len ( values ) % 2 != 0 { return nil , errors . New ( " " ) } pairs := make ( map [ interface { } ] interface { } ) for i := 0 ; i < len ( values ) ; i += 2 { key := values [ i ] pairs [ key ] = values [ i + 1 ] } return pairs , nil }
///////////////////////////////////
/////////////////////////////////