config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config handles loading and saving the Omaclip config file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(path string, cfg Config) error

Save marshals cfg and writes it to path, creating parent directories as needed.

Types

type Config

type Config struct {
	Passphrase string `json:"passphrase"`
}

Config holds persistent application configuration.

func Load

func Load(path string) (Config, error)

Load reads and unmarshals the config file at the given path.

Jump to

Keyboard shortcuts

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