utils

package
v0.0.0-...-3d7ce53 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithTempDir

func WithTempDir(t *testing.T) func()

WithTempDir creates a temp directory, changes the current working directory to it, and returns a function that can be called to clean up. Use it like this:

defer WithTempDir(t)()

Types

This section is empty.

Jump to

Keyboard shortcuts

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