[v4] improve metadata documentation (#216)
All checks were successful
coverage / build (push) Successful in 1m47s
test / test (push) Successful in 2m50s

* add usage docs for context types and metadata, improve comments

* changes after review
This commit is contained in:
2025-05-06 13:02:27 +05:00
committed by GitHub
parent b7c98da6d1
commit 1a1b67866a
5 changed files with 388 additions and 340 deletions

7
metadata/helpers.go Normal file
View File

@@ -0,0 +1,7 @@
package metadata
func copyOf(v []string) []string {
vals := make([]string, len(v))
copy(vals, v)
return vals
}