packer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBoxes = []uint{
	250,
	500,
	1000,
	2000,
	5000,
}

Functions

This section is empty.

Types

type Packer

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

func NewPacker

func NewPacker(ctx context.Context, opts ...PackerOption) (*Packer, error)

func (Packer) PackOrder

func (p Packer) PackOrder(ctx context.Context, items uint) []uint

type PackerOption

type PackerOption func(*Packer)

func WithBoxes

func WithBoxes(boxes []uint) PackerOption

func WithDefaultBoxes

func WithDefaultBoxes() PackerOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL