config

package
v0.0.0-...-613730d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFolder

func CreateConfigFolder(appName string) error

Create a folder to save the config file if it doesn't exist yet

func GetConfigFilePath

func GetConfigFilePath(appName, configFileName string) string

Calculate the configuration file path

func LoadFileToStruct

func LoadFileToStruct(configFilePath string, config any) bool

Restores the configuration file into the struct

func SaveStructToFile

func SaveStructToFile(configFilePath string, config any) error

Saves the struct to an configuration file

Types

This section is empty.

Jump to

Keyboard shortcuts

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