appconfigurator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigurationDirectoryPath

func DefaultConfigurationDirectoryPath() (string, error)

Types

type Config

type Config[T any] struct {
	// Environment is your environment name (e.g. local, development, staging, production)
	// Whatever this field is, there must be a file named $PROJECT_PATH/configurations/{Environment}.json
	Environment string `json:"environment"`
	Variables   T      `json:"variables"`
}

Config[T any] is the base configuration object we use

func Load

func Load[T any](configurationDirectoryPath, environment string) (*Config[T], error)

Jump to

Keyboard shortcuts

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