quick

package
v0.0.0-...-e0596a5 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package quick loads and saves versioned JSON configuration files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Version() string
	Save(string) error
	Load(string) error
	Data() any
}

Config provides access to a versioned configuration value.

func LoadConfig

func LoadConfig(filename string, data any) (Config, error)

LoadConfig initializes and loads a versioned configuration from filename.

func NewConfig

func NewConfig(data any) (Config, error)

NewConfig initializes a versioned configuration value.

Jump to

Keyboard shortcuts

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