Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.308.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pointer added in v0.225.0

func Pointer[K any](val K) *K

func SetupServer

func SetupServer(fn func(mux *http.ServeMux)) (*httptest.Server, func())

Types

type MemFS added in v0.30.0

type MemFS map[string]*fstest.MapFile

MemFS is copied from fstest.MapFS to support absolute paths

func (MemFS) Open added in v0.30.0

func (m MemFS) Open(name string) (fs.File, error)

Jump to

Keyboard shortcuts

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