fracdex

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: CC-BY-4.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

Licensed under CC0-1.0 Universial by https://github.com/rocicorp/fracdex

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64Approx

func Float64Approx(key string) (float64, error)

Float64Approx converts a key as generated by KeyBetween() to a float64. Because the range of keys is far larger than float64 can represent accurately, this is necessarily approximate. But for many use cases it should be, as they say, close enough for jazz.

func KeyBetween

func KeyBetween(a, b string) (string, error)

KeyBetween returns a key that sorts lexicographically between a and b. Either a or b can be empty strings. If a is empty it indicates smallest key, If b is empty it indicates largest key. b must be empty string or > a.

func NKeysBetween

func NKeysBetween(a, b string, n uint) ([]string, error)

NKeysBetween returns n keys between a and b that sorts lexicographically. Either a or b can be empty strings. If a is empty it indicates smallest key, If b is empty it indicates largest key. b must be empty string or > a.

Types

This section is empty.

Jump to

Keyboard shortcuts

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