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

fixtures

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffCLITable

func DiffCLITable(want []byte, got []byte) string

func Render

func Render(fixturePath string, data any) (string, error)

Render reads a fixture from the embedded filesystem and renders it as a template

func RenderFile added in v0.6.3

func RenderFile(filepath string, data any) (string, error)

RenderFile reads a file and renders it as a template with the given data

func RenderTemplate added in v0.6.3

func RenderTemplate(templateContent string, data any) (string, error)

RenderTemplate renders a template string with the given data

Types

This section is empty.

Jump to

Keyboard shortcuts

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