From 04ce17415f25dbf10eba954212c8428ae630df88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 26 Oct 2022 11:31:22 +0200 Subject: Format with go 1.19 --- field_metadata.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'field_metadata.go') 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) } -- cgit v1.2.3