NameInterface
type NameInterface
type NameInterface interface {
// Formats a name into a string based on the available output formats.
// The default separator is `.`
Format(format NameFormat) string
// Returns whether this name is a second-level name (Ex. `test.iota`)
IsSln() bool
// Returns whether this name is a subname (Ex. `sub.test.iota`)
IsSubname() bool
// Get the label at the given index
Label(index uint32) *string
// Get all of the labels. NOTE: These are in reverse order starting with
// the top-level name and proceeding to subnames.
Labels() []string
// Returns the number of labels including TLN.
NumLabels() uint32
// parents; second-level names return `None`.
Parent() **Name
}