Documentation
¶
Index ¶
- func CreateFn[T any](key string, value T) func(*Store[T]) error
- func DeleteFn[T any](key string) func(*Store[T]) error
- func ReadEnvFile(filename string) (map[string]string, error)
- func ReadFn[T any](key string, fn func(T) error) func(*Store[T]) error
- func UpdateFn[T any](key string, value T) func(*Store[T]) error
- type Option
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadEnvFile ¶
ReadEnvFile parses a dotenv-format file (KEY=VALUE per line, # comments supported, blank lines ignored) and returns a flat map. Lines without `=` are skipped silently. The caller is responsible for the file path.
Types ¶
type Option ¶
func WithEnvFile ¶
Click to show internal directories.
Click to hide internal directories.