aboutsummaryrefslogtreecommitdiff
path: root/field_metadata.go
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-10-26 11:31:22 +0200
committerSandro Jäckel <sandro.jaeckel@sap.com>2022-10-26 14:05:42 +0200
commit04ce17415f25dbf10eba954212c8428ae630df88 (patch)
tree1aca7ceab052f17a44bb903fb5a8bd45202bd54c /field_metadata.go
parentfd6e57b6239655722884a49a86be0f051cc32bde (diff)
downloadgo-schwift-04ce17415f25dbf10eba954212c8428ae630df88.tar.gz
Format with go 1.19
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)
}