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) Remove(name string) (success bool)
- func (idx *Index) String() string
- func (idx *Index) Swap(name string, indice *IndiceItem) (success bool)
- func (idx *Index) ToJSON(pretty bool) (b []byte, err error)
- func (idx *Index) ToText() (text string)
- type IndiceItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func DecodeIndexJSON ¶
func (*Index) Add ¶
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 ¶
func (idx *Index) Find(name string) (indice *IndiceItem)
type IndiceItem ¶
func (*IndiceItem) String ¶
func (i *IndiceItem) String() (s string)
Click to show internal directories.
Click to hide internal directories.