tool

package
v17.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformMap

func TransformMap[K comparable, V1 any, V2 any, IN ~map[K]V1, OUT ~map[K]V2, E any](
	in IN,
	v1Len func(V1) int,
	appendV1ToSlice func(V1, []E) []E,
	elemToV2 func([]E) V2) OUT

TransformMap transforms map of type IN into a map of type OUT. The main point of this function is to optimize memory usage. It allocates a single slice for the elements in values of the map rather than a slice per key.

Types

This section is empty.

Directories

Path Synopsis
testing
mock_agent_registrar
Package mock_agent_registrar is a generated GoMock package.
Package mock_agent_registrar is a generated GoMock package.
mock_agent_tracker
Package mock_agent_tracker is a generated GoMock package.
Package mock_agent_tracker is a generated GoMock package.
mock_agentk2kas_router
Package mock_agentk2kas_router is a generated GoMock package.
Package mock_agentk2kas_router is a generated GoMock package.
mock_cache
Package mock_cache is a generated GoMock package.
Package mock_cache is a generated GoMock package.
mock_event_tracker
Package mock_event_tracker is a generated GoMock package.
Package mock_event_tracker is a generated GoMock package.
mock_gitaly
Mocks for Gitaly.
Mocks for Gitaly.
mock_gitlab_access
Mocks for GitLab access RPC.
Mocks for GitLab access RPC.
mock_internalgitaly
Package mock_internalgitaly is a generated GoMock package.
Package mock_internalgitaly is a generated GoMock package.
mock_k8s
Package mock_k8s is a generated GoMock package.
Package mock_k8s is a generated GoMock package.
mock_kubernetes_api
Package mock_kubernetes_api is a generated GoMock package.
Package mock_kubernetes_api is a generated GoMock package.
mock_modagent
Package mock_modagent is a generated GoMock package.
Package mock_modagent is a generated GoMock package.
mock_modserver
Package mock_modserver is a generated GoMock package.
Package mock_modserver is a generated GoMock package.
mock_modshared
Package mock_modshared is a generated GoMock package.
Package mock_modshared is a generated GoMock package.
mock_otel
Package mock_otel is a generated GoMock package.
Package mock_otel is a generated GoMock package.
mock_redis
Package mock_redis is a generated GoMock package.
Package mock_redis is a generated GoMock package.
mock_reverse_tunnel_rpc
Package mock_reverse_tunnel_rpc is a generated GoMock package.
Package mock_reverse_tunnel_rpc is a generated GoMock package.
mock_rpc
Package mock_rpc is a generated GoMock package.
Package mock_rpc is a generated GoMock package.
mock_stdlib
Package mock_stdlib contains Go standard library mocks
Package mock_stdlib contains Go standard library mocks
mock_tool
Package mock_tool is a generated GoMock package.
Package mock_tool is a generated GoMock package.
mock_tunnel_tunserver
Package mock_tunnel_tunserver is a generated GoMock package.
Package mock_tunnel_tunserver is a generated GoMock package.
mock_usage_metrics
Package mock_usage_metrics is a generated GoMock package.
Package mock_usage_metrics is a generated GoMock package.

Jump to

Keyboard shortcuts

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