exp

package
v3.37.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

This package is intended as a place to copy functions from the golang.org/x/exp package. Copying these functions allows us to rely on our own code instead of an external package that may change unpredictably in the future.

It also prevents problems with transitive dependencies whereby a package that imports Task (and therefore our version of golang.org/x/exp) cannot import a different version of golang.org/x/exp.

Finally, it serves as a place to track functions that may be able to be removed in the future if they are added to the standard library. This is also why this package is under the internal directory since these functions are not intended to be used outside of Task.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keys

func Keys[K cmp.Ordered, V any](m map[K]V) []K

Keys is a copy of https://pkg.go.dev/golang.org/x/exp@v0.0.0-20240103183307-be819d1f06fc/maps#Keys. This is not yet included in the standard library. See https://github.com/golang/go/issues/61538.

Types

This section is empty.

Jump to

Keyboard shortcuts

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