util

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package util provides shared internal utility functions for the iam project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(a, b []string) bool

Contains checks whether slice a contains any element from slice b. It uses optimized strategies based on input sizes:

  • Single-element b: linear scan of a.
  • Small inputs (both <= 16): nested loop without allocation.
  • Large inputs: hash-set built from the shorter slice for O(1) lookups.

Types

This section is empty.

Jump to

Keyboard shortcuts

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