conf

package module
v0.0.0-...-2fcacdd Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package conf provides some helper functions for configuration management Generally, just loading/saving configuration files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAndParseJSON

func ReadAndParseJSON[T any](path string) (*T, error)

ReadAndParseJSON will attempt to load the given config path and unmarshal it into T. If it fails for whatever reason, it will return an empty T and the error.

func ReadAndParseYAML

func ReadAndParseYAML[T any](path string) (*T, error)

ReadAndParseYAML will attempt to load the given config path and unmarshal it into T. If it fails for whatever reason, it will return an empty T and the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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