Socket
Book a DemoInstallSign in
Socket

toolman.org/base/osutil

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toolman.org/base/osutil

Go Modules
Version
v1.0.0
Version published
Created
Source

Install

go get toolman.org/base/osutil

osutil

import "toolman.org/base/osutil"

  • Overview
  • Index

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.

FAQs

Package last updated on 08 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts