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

testing

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChanToSlice

func ChanToSlice[T any](input <-chan T) []T

ChanToSlice collects all the data from the given channel and converts it into a slice.

func CreateTempFile

func CreateTempFile(dir string, name string, content string) string

CreateTempFile creates a temp file with the given name and content.

func ReadFile

func ReadFile(filepath string) string

ReadFile reads a the given file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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