feat: WIP

This commit is contained in:
jar3b@outlook.com
2021-09-23 02:42:00 +03:00
parent 81873b6339
commit 0b9114e50c
10 changed files with 688 additions and 0 deletions

13
util.go Normal file
View 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
}