Thoth
A functional, expressive, asynchronous C++26 webdev library
Loading...
Searching...
No Matches
Env.hpp
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <optional>
4
5namespace Thoth::Utils {
23 std::optional<const std::string_view> Env(std::string_view envkey);
24
26 std::optional<const std::u8string_view> Utf8Env(std::string_view envkey);
27}
Definition Env.hpp:5
std::optional< const std::string_view > Env(std::string_view envkey)
Get variables from the ".env" file. Supports command execution and multiline.
std::optional< const std::u8string_view > Utf8Env(std::string_view envkey)
Get variables from the ".env" file. Supports command execution and multiline.