tools

package
v0.0.0-...-9f60fe2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolInv

func BoolInv(b *bool) bool

func Booly

func Booly(b bool) *bool

func Float64Inv

func Float64Inv(f *float64) float64

func Float64y

func Float64y(f float64) *float64

func IntInv

func IntInv(i *int) int

func Inty

func Inty(i int) *int

func LoggedHTTPTransport

func LoggedHTTPTransport(t http.RoundTripper) http.RoundTripper

func MapToStrings

func MapToStrings[T any](list []T, field func(T) string) []string

MapToStrings is a generic function that takes a list of any type and a function that maps that type to a string. It returns a list of strings.

func Pointery

func Pointery[T any](t T) *T

func StringInv

func StringInv(s *string) string

func Stringy

func Stringy(s string) *string

func Unzip

func Unzip(src io.Reader, dest string) ([]string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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