util

package
v0.0.0-...-de834d6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](s []T, e T) bool

func CopyValues

func CopyValues(value map[string]interface{}) map[string]interface{}

Types

type LazyOf

type LazyOf[T any] struct {
	New func() (T, error)
	// contains filtered or unexported fields
}

func NewLazyOf

func NewLazyOf[T any](newfunc func() (T, error)) *LazyOf[T]

func (*LazyOf[T]) Value

func (l *LazyOf[T]) Value() (T, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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