go-git.v4: gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/frame Index | Files

package frame

import "gopkg.in/src-d/go-git.v4/utils/merkletrie/internal/frame"

Index

Package Files

frame.go

type Frame Uses

type Frame struct {
    // contains filtered or unexported fields
}

A Frame is a collection of siblings in a trie, sorted alphabetically by name.

func New Uses

func New(n noder.Noder) (*Frame, error)

New returns a frame with the children of the provided node.

func (*Frame) Drop Uses

func (f *Frame) Drop()

Drop extracts the noder with the alphabetically smaller name in the frame or does nothing if the frame was empty.

func (*Frame) First Uses

func (f *Frame) First() (noder.Noder, bool)

First returns, but dont extract, the noder with the alphabetically smaller name in the frame and true if the frame was not empy. Otherwise it returns nil and false.

func (*Frame) Len Uses

func (f *Frame) Len() int

Len returns the number of noders in the frame.

func (*Frame) String Uses

func (f *Frame) String() string

String returns the quoted names of the noders in the frame sorted in alphabeticall order by name, surrounded by square brackets and separated by comas.

Examples:

[]
["a", "b"]

Package frame imports 5 packages (graph) and is imported by 1 packages. Updated 2019-08-07. Refresh now. Tools for package owners.