feat: add example

This commit is contained in:
sujit
2024-10-08 23:14:54 +05:45
parent af11b3826d
commit 3e8f47086f
7 changed files with 166 additions and 614 deletions

2
ctx.go
View File

@@ -118,8 +118,6 @@ func GetPublisherID(ctx context.Context) (string, bool) {
// Helper function to convert HeaderMap to a regular map
func getMapAsRegularMap(hd *HeaderMap) map[string]string {
result := make(map[string]string)
hd.mu.RLock()
defer hd.mu.RUnlock()
for key, value := range hd.headers {
result[key] = value
}