Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CutLastElement ¶
func LastElement ¶
Types ¶
type PlaceHierarchy ¶
type PlaceHierarchy struct {
// contains filtered or unexported fields
}
func (*PlaceHierarchy) CutLast ¶
func (p *PlaceHierarchy) CutLast() (*PlaceHierarchy, string)
func (*PlaceHierarchy) Last ¶
func (p *PlaceHierarchy) Last() (string, bool)
type PlaceName ¶
type PlaceName struct { ID string Kind PlaceKind Name string Adjective string Aliases []string Unknown bool ChildHints []Hint PartOf []*PlaceName }
func ClassifyName ¶
func LookupPlaceName ¶
func UnknownPlaceName ¶
func UnknownPlaceName() *PlaceName
func (*PlaceName) FindContainerKind ¶
type PlaceNameHierarchy ¶
type PlaceNameHierarchy struct { Name PlaceName Kind PlaceKind NormalizedWithHierarchy string Parent *PlaceNameHierarchy Child *PlaceNameHierarchy }
func ParseNameHierarchy ¶
func ParseNameHierarchy(s string, hints ...Hint) (*PlaceNameHierarchy, bool)
ParseNameHierarchy attempts to parse a placename into a hierarchy
func (*PlaceNameHierarchy) HasParent ¶
func (p *PlaceNameHierarchy) HasParent() bool
func (*PlaceNameHierarchy) String ¶
func (p *PlaceNameHierarchy) String() string
Click to show internal directories.
Click to hide internal directories.