fixtures

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(filePath string, a any) error

func Path

func Path(rel string) string

Path returns the absolute path the given relative file or directory path, relative to the "fixtures" directory. If rel is already absolute, it is returned unmodified.

func Read

func Read(filepath string) ([]byte, error)

func Write

func Write(filepath string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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