Help us shape the future of Go! Take the 2026 Go Developer Survey

environment

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

go-utils

Test Golang module to compare the behaviour of GitHub vs our internal GitLab that does not seem to be able to cope with "go get" in projects that use Go modules (contain a go.mod file)

Documentation

Overview

Package environment provides a set of functions for safely accessing the environment variables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVar

func GetVar(key string, defaultVal string) string

func GetVarAsBool

func GetVarAsBool(name string, defaultVal bool) bool

func GetVarAsInt

func GetVarAsInt(name string, defaultVal int) int

func GetVarAsSlice

func GetVarAsSlice(name string, defaultVal []string, sep string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL