util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T comparable](arr []T, predicate func(T) bool) []T

func SetToSlice

func SetToSlice[T comparable](src map[T]bool) []T

func SliceToSet

func SliceToSet[T comparable](src []T) map[T]bool

Types

type InterceptFunc

type InterceptFunc func(*http.Request) error

type InterceptTransport

type InterceptTransport struct {
	T http.RoundTripper
	// contains filtered or unexported fields
}

func (*InterceptTransport) RoundTrip

func (it *InterceptTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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