util_generics

package
v0.0.0-...-a295026 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package util_generics houses utility function which make us of generics. Chrome Infra is locked to Go 1.17 to support Mac 10.11, so we cannot ship code to CIPD that uses generics. Thus, we partition our common utilities (for now) until they are able to update.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[K comparable, V interface{}](theMap map[K]V, k K, fallback V) V

Get looks up an item in a map, returning a fallback value if absent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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