util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](x []T, y T) bool

Contains return if y is in slice x

func Equivalent

func Equivalent[T comparable](x, y []T) bool

Equivalent return true if x and y are equal when sorted

func Ptr

func Ptr[T any, PT *T](x T) PT

Ptr return pointer to any value for API purposes

func SplitTrim added in v0.1.2

func SplitTrim(str, sep string) []string

SplitTrim split string and trim whitespace

func Without

func Without[T comparable](x []T, y T) []T

Without return all of x in same order without y

Types

This section is empty.

Jump to

Keyboard shortcuts

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