mp

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapValue

func GetMapValue(input map[string]any, path string, iter Iterator) (any, error)

Types

type ErrSegmentNotFound

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

func (*ErrSegmentNotFound) Error

func (e *ErrSegmentNotFound) Error() string

type Iterator

type Iterator interface {
	Next(segment string) int
	Rand(length int) int
}

type NextIterator

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

func NewNextIterator

func NewNextIterator(seed int64) *NextIterator

func (*NextIterator) Next

func (n *NextIterator) Next(segment string) int

func (*NextIterator) Rand

func (n *NextIterator) Rand(length int) int

Jump to

Keyboard shortcuts

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