all: use variables for xml.Name values

This commit is contained in:
Simon Ser
2020-01-17 17:09:23 +01:00
parent 557972089c
commit 34b2ebf940
5 changed files with 20 additions and 13 deletions

View File

@@ -6,15 +6,11 @@ import (
"github.com/emersion/go-vcard"
)
const namespace = "urn:ietf:params:xml:ns:carddav"
type AddressBook struct {
Href string
Description string
}
var addressBookName = xml.Name{namespace, "addressbook"}
type AddressBookQuery struct {
Props []string
}