xmpp: mellium.im/xmpp/internal/attr Index | Files

package attr

import "mellium.im/xmpp/internal/attr"

Package attr contains unexported functionality related to XML attributes.

Index

Package Files

attr.go doc.go idgen.go

Constants

const IDLen = 16

IDLen is the standard length of stanza identifiers in bytes.

func Get Uses

func Get(attr []xml.Attr, local string) string

Get returns the value of the first attribute with the provided local name from a list of attributes or an empty string if no such attribute exists.

func RandomID Uses

func RandomID() string

RandomID generates a new random identifier of length IDLen. If the OS's entropy pool isn't initialized, or we can't generate random numbers for some other reason, panic.

Package attr imports 4 packages (graph) and is imported by 1 packages. Updated 2019-08-13. Refresh now. Tools for package owners.