feat: WIP
This commit is contained in:
13
util.go
Normal file
13
util.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package nats_transport
|
||||
|
||||
// copy the values into protocol buffer
|
||||
// struct
|
||||
func copyMap(values map[string][]string) map[string]*Values {
|
||||
headerMap := make(map[string]*Values, 0)
|
||||
for k, v := range values {
|
||||
headerMap[k] = &Values{
|
||||
Arr: v,
|
||||
}
|
||||
}
|
||||
return headerMap
|
||||
}
|
||||
Reference in New Issue
Block a user