Documentation
¶
Index ¶
- type Index
- func (idx *Index) Add(indice *IndiceItem) (conflictEntry *IndiceItem)
- func (idx *Index) Find(name string) (indice *IndiceItem)
- func (idx *Index) FindPath(name string) (path string)
- func (idx *Index) Print(pretty bool) (b []byte, err error)
- func (idx *Index) Remove(name string) (success bool)
- func (idx *Index) String() string
- func (idx *Index) Swap(name string, indice *IndiceItem) (success bool)
- type IndiceItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶ added in v0.3.0
type Index struct {
// contains filtered or unexported fields
}
func DecodeIndexJSON ¶ added in v0.3.0
func (*Index) Add ¶ added in v0.5.0
func (idx *Index) Add(indice *IndiceItem) (conflictEntry *IndiceItem)
Add adds indice into idx. If an IndiceItem in idx.Items has the same name to indice, it is returned as conflictEntry
func (*Index) Find ¶ added in v0.3.0
func (idx *Index) Find(name string) (indice *IndiceItem)
type IndiceItem ¶ added in v0.3.0
func (*IndiceItem) String ¶ added in v0.5.0
func (i *IndiceItem) String() (s string)
Click to show internal directories.
Click to hide internal directories.