简介
来自 GitHub 开源项目 psyb0t/goenv 的轻量库,以零依赖方式安全判定 prod/dev 环境,默认回退生产级策略。
原始描述
Go library that reads the ENV variable and returns "dev" only if exactly "dev", otherwise "prod" with boolean helpers and fail-safe defaults.
其他来源收录
同一技能在不同目录的原始页面:
来自 GitHub 开源项目 psyb0t/goenv 的轻量库,以零依赖方式安全判定 prod/dev 环境,默认回退生产级策略。
Go library that reads the ENV variable and returns "dev" only if exactly "dev", otherwise "prod" with boolean helpers and fail-safe defaults.
同一技能在不同目录的原始页面: