mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
14 lines
230 B
Go
14 lines
230 B
Go
package models
|
|
|
|
const (
|
|
formanceMetadataSpecNamespace = "com.formance.spec/"
|
|
)
|
|
|
|
func ExtractNamespacedMetadata(metadata map[string]string, key string) string {
|
|
value, ok := metadata[key]
|
|
if !ok {
|
|
return ""
|
|
}
|
|
return value
|
|
}
|