~samwhited/xmpp

778ef04f383cf1ef417ada6605a667cd9dd4b1c2 — Sam Whited 5 years ago 1bf2f41
Don't modify go generate output for iqType strings
2 files changed, 3 insertions(+), 2 deletions(-)

M iq.go
M iqtype_string.go
M iq.go => iq.go +2 -1
@@ 7,6 7,7 @@ package xmpp
import (
	"context"
	"encoding/xml"
	"strings"

	"mellium.im/xmpp/jid"
)


@@ 43,7 44,7 @@ const (
)

func (t iqType) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
	return xml.Attr{Name: name, Value: t.String()}, nil
	return xml.Attr{Name: name, Value: strings.ToLower(t.String())}, nil
}

// TODO: Should this be variadic and accept many payloads or many to's?

M iqtype_string.go => iqtype_string.go +1 -1
@@ 4,7 4,7 @@ package xmpp

import "fmt"

const _iqType_name = "getsetresulterror"
const _iqType_name = "GetSetResultError"

var _iqType_index = [...]uint8{0, 3, 6, 12, 17}