ext

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 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 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