Movatterモバイル変換


[0]ホーム

URL:


nocasemaps

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:2Imported by:1

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

nocasemaps provides efficient functions to set and get entries in Go mapskeyed by a string, where the string is always lower-case.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcAppendSliceElemadded inv1.60.0

func AppendSliceElem[K ~string, S []E, Eany](m map[K]S, k K, vs ...E)

AppendSliceElem is equivalent to:

append(m[strings.ToLower(k)], v)

funcDelete

func Delete[K ~string, Vany](m map[K]V, k K)

Delete is equivalent to:

delete(m, strings.ToLower(k))

funcGet

func Get[K ~string, Vany](m map[K]V, k K) V

Get is equivalent to:

v := m[strings.ToLower(k)]

funcGetOk

func GetOk[K ~string, Vany](m map[K]V, k K) (V,bool)

GetOk is equivalent to:

v, ok := m[strings.ToLower(k)]

funcSet

func Set[K ~string, Vany](m map[K]V, k K, v V)

Set is equivalent to:

m[strings.ToLower(k)] = v

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp