fixtures

package
v0.0.0-...-ae8e89f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FixturesFS embed.FS

Functions

func MarshalJSON

func MarshalJSON(pathToFile string, in any) error

func MarshalPB

func MarshalPB(pathToFile string, in proto.Message) error

func MustMarshalJSON

func MustMarshalJSON(pathToFile string, in any)

func MustMarshalPB

func MustMarshalPB(pathToFile string, in proto.Message)

func MustReadFile

func MustReadFile(pathToFile string) []byte

func MustUnmarshalJSON

func MustUnmarshalJSON(pathToFile string, out any)

func MustUnmarshalPB

func MustUnmarshalPB(pathToFile string, out proto.Message)

func ReadFile

func ReadFile(pathToFile string) ([]byte, error)

func UnmarshalJSON

func UnmarshalJSON(pathToFile string, out any) error

func UnmarshalPB

func UnmarshalPB(pathToFile string, out proto.Message) error

func WriteFile

func WriteFile(relPath 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