Skip to content

Add Pattern method to Mux #39

@jirenius

Description

@jirenius

It should be possible to get the Path used when creating the Mux.

mux := NewMux("this.path")
mux.Path() // Returns "this.path"

Additionally, when mounting the Mux, there should be a FullPath that returns the path including that of the parent and the mount path.

mux := NewMux("this.path")
sub := NewMux("")
mux.Mount("sub", sub)
sub.FullPath() // Returns "this.path.sub"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions