Documentation
¶
Overview ¶
Package shifter provide simple routing by dividing path into its segment
Index ¶
- type Shifter
- func (s *Shifter) ClearTag(index int)
- func (s *Shifter) CurrentIndex() int
- func (s *Shifter) DeleteTag(tag string)
- func (s *Shifter) End() bool
- func (s *Shifter) Get(i int) string
- func (s *Shifter) GetByTag(tag string) (string, bool)
- func (s *Shifter) GetRelative(d int) string
- func (s *Shifter) Reset()
- func (s *Shifter) SetNext(next int)
- func (s *Shifter) Shift() (string, bool)
- func (s *Shifter) Size() int
- func (s *Shifter) Split() (done []string, rest []string)
- func (s *Shifter) Tag(tag string)
- func (s *Shifter) TagIndex(i int, tag string)
- func (s *Shifter) TagRelative(d int, tag string)
- func (s *Shifter) Unshift()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shifter ¶
type Shifter struct {
// contains filtered or unexported fields
}
Shifter hold state of shifting segment in the path
func (*Shifter) GetRelative ¶
GetRelative is same with Get, but relative to current segment
func (*Shifter) TagRelative ¶
TagRelative is same with TagIndex, but relative to current segment
Click to show internal directories.
Click to hide internal directories.