analysis

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Key  string
	Size uint64
}

type ItemHeap

type ItemHeap []Item

func (ItemHeap) Len

func (ih ItemHeap) Len() int

func (ItemHeap) Less

func (ih ItemHeap) Less(i, j int) bool

func (*ItemHeap) Pop

func (ih *ItemHeap) Pop() interface{}

func (*ItemHeap) Push

func (ih *ItemHeap) Push(x interface{})

func (ItemHeap) Swap

func (ih ItemHeap) Swap(i, j int)

type Summary

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

func NewSummary

func NewSummary(size int) *Summary

func (*Summary) Add

func (t *Summary) Add(item Item)

func (*Summary) All

func (t *Summary) All() []Item

func (*Summary) Next

func (t *Summary) Next() (Item, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳