shims

package
v0.4.5-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package shims provides functions that are in "future" releases of the Go standard library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[M ~map[K]V, K comparable, V any](m M) M

Clone is the maps.Clone function available in versions of Go >1.21

func CutPrefix

func CutPrefix(s, prefix string) (after string, found bool)

CutPrefix is the CutPrefix function from go >1.20

func Keys

func Keys[K comparable, V any](m map[K]V) []K

Keys returns the set of leys in the map, like the maps.Keys in version of Go >=1.23

Types

This section is empty.

Jump to

Keyboard shortcuts

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