util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDescription

func CleanDescription(desc string) string

func Contains

func Contains[T comparable](arr []T, elem T) bool

func Filter

func Filter[T any](methods []T, pred func(m T) bool) []T

func IndexOf

func IndexOf[T comparable](arr []T, elem T) int

func IsTimeField

func IsTimeField(field types.Type) bool

func Map

func Map[T any, U any](input []T, transform func(m T) U) []U

func RemoveElement

func RemoveElement[T comparable](arr []T, elem T) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

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