aboutsummaryrefslogtreecommitdiff
path: root/field_metadata.go
diff options
context:
space:
mode:
authorStefan Majewsky <stefan.majewsky@sap.com>2022-10-28 16:06:40 +0200
committerStefan Majewsky <stefan.majewsky@sap.com>2022-10-28 16:06:40 +0200
commit90dd519a948d06738479c04d331f28dfab99315c (patch)
treed4a9914cb73be3dbe9438b012a08408d79bdb7c9 /field_metadata.go
parentfd6e57b6239655722884a49a86be0f051cc32bde (diff)
parent5cf9b60d2ded95d29827389a1a5901f1068d4337 (diff)
downloadgo-schwift-90dd519a948d06738479c04d331f28dfab99315c.tar.gz
Merge remote-tracking branch 'SuperSandro2000:sha2'
Diffstat (limited to 'field_metadata.go')
-rw-r--r--field_metadata.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/field_metadata.go b/field_metadata.go
index 90993d4..447f293 100644
--- a/field_metadata.go
+++ b/field_metadata.go
@@ -18,9 +18,9 @@
package schwift
-//FieldMetadata is a helper type that provides safe access to the metadata headers
-//in a headers instance. It cannot be directly constructed, but each headers
-//type has a method "Metadata" returning this type. For example:
+// FieldMetadata is a helper type that provides safe access to the metadata headers
+// in a headers instance. It cannot be directly constructed, but each headers
+// type has a method "Metadata" returning this type. For example:
//
// hdr := NewObjectHeaders()
// //the following two statements are equivalent
@@ -31,22 +31,22 @@ type FieldMetadata struct {
k string
}
-//Clear works like Headers.Clear(), but prepends the metadata prefix to the key.
+// Clear works like Headers.Clear(), but prepends the metadata prefix to the key.
func (m FieldMetadata) Clear(key string) {
m.h.Clear(m.k + key)
}
-//Del works like Headers.Del(), but prepends the metadata prefix to the key.
+// Del works like Headers.Del(), but prepends the metadata prefix to the key.
func (m FieldMetadata) Del(key string) {
m.h.Del(m.k + key)
}
-//Get works like Headers.Get(), but prepends the metadata prefix to the key.
+// Get works like Headers.Get(), but prepends the metadata prefix to the key.
func (m FieldMetadata) Get(key string) string {
return m.h.Get(m.k + key)
}
-//Set works like Headers.Set(), but prepends the metadata prefix to the key.
+// Set works like Headers.Set(), but prepends the metadata prefix to the key.
func (m FieldMetadata) Set(key, value string) {
m.h.Set(m.k+key, value)
}