package repo

type Identity struct {
	Name  string
	Email string
}

func (i *Identity) hasName() bool {
	return i.Name != ""
}

func (i *Identity) hasEmail() bool {
	return i.Email != ""
}

func (i *Identity) String() string {
	str := ""
	if i.hasName() {
		str += "\tName: " + i.Name
	}
	if i.hasEmail() {
		str += "\tEmail: " + i.Email
	}
	return str
}

package repo

type Identity struct {
	Name  string
	Email string
}

func (i *Identity) hasName() bool {
	return i.Name != ""
}

func (i *Identity) hasEmail() bool {
	return i.Email != ""
}

func (i *Identity) String() string {
	str := ""
	if i.hasName() {
		str += "  Name: " + i.Name + "\n"
	}
	if i.hasEmail() {
		str += "  Email: " + i.Email
	}
	return str
}

Improve string representation of Identity
Improve string representation of Identity
