config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config loads and validates the per-project snapdiff.toml.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Snapshots SnapshotsConfig
	Server    ServerConfig
}

func Load

func Load(path string) (*Config, error)

Load reads and validates the snapdiff config at path.

type ServerConfig

type ServerConfig struct {
	Bind          string
	LingerSeconds int
}

type SnapshotsConfig

type SnapshotsConfig struct {
	Globs     []string
	AxisRegex *regexp.Regexp
	BaseRef   string
}

Jump to

Keyboard shortcuts

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