ext

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirToTar

func DirToTar(root string, out io.Writer) error

func JP

func JP[T any](obj any, path string) (T, error)

func Must added in v1.0.8

func Must[T any](val T, err error) T

Must function returns the value if err is nil, otherwise it panics. Useful for simplifying error handling in situations where errors are unexpected or unrecoverable.

func ReadTar

func ReadTar(src io.Reader, callback func(path string, content []byte) error) error

func SortedKeys

func SortedKeys[T any](m map[string]T) []string

func WriteTar

func WriteTar(src map[string][]byte, out io.Writer) error

func ZapError

func ZapError(err error) []zap.Field

Types

type HTTPTestHandler

type HTTPTestHandler interface {
	http.Handler
	GetResources() map[string][]byte
}

func NewHTTPTestHandler

func NewHTTPTestHandler(t *testing.T) HTTPTestHandler

Jump to

Keyboard shortcuts

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