gotcfg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile[T any](root *os.Root, p string, cfg T) error

func EditFile

func EditFile[T any](root *os.Root, p string, fn func(T) T) error

func LoadFile

func LoadFile[T any](root *os.Root, p string) (*T, error)

func Marshal

func Marshal(x any) []byte

func Parse

func Parse[T any](data []byte) (*T, error)

func Unmarshal

func Unmarshal[T any](data []byte, x *T) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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