tep / base-osutil

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install

go get toolman.org/base/osutil

osutil

import "toolman.org/base/osutil"

Overview

Package osutil provides convenience functions for OS interaction

Index

Package files

env.go

func FindEnvDefault

func FindEnvDefault(defaultValue string, vars ...string) string

FindEnvDefault examines the environment variables specified by vars and returns the value of the first variable found to be set, even if the set value is the empty string. If none of the given vars are set in the current environment, defaultValue is returned instead.

About

License:GNU General Public License v2.0


Languages

Language:Go 100.0%