Skip to content

Instantly share code, notes, and snippets.

View macleod-ee's full-sized avatar
🤖
Replicant? More likely than you would think.

Macleod Sawyer macleod-ee

🤖
Replicant? More likely than you would think.
View GitHub Profile
@macleod-ee
macleod-ee / check_env.odin
Last active October 29, 2024 16:14
Environment File (.env) Reader [Odin]
// Two options:
// Option 1: set a struct that stores the values,
// Option 2: Use the native Environment Variable options:
// https://pkg.odin-lang.org/core/os/#set_env
// Option 1:
Global_Env :: struct {
USER: string,
PWD: string
}