build: golang.org/x/build/envutil Index | Files

package envutil

import "golang.org/x/build/envutil"

Package envutil provides utilities for working with environment variables.

Index

Package Files

dedup.go

func Dedup Uses

func Dedup(caseInsensitive bool, env []string) []string

Dedup returns a copy of env with any duplicates removed, in favor of later values. Items are expected to be on the normal environment "key=value" form. If caseInsensitive is true, the case of keys is ignored.

Package envutil imports 1 packages (graph) and is imported by 5 packages. Updated 2017-12-16. Refresh now. Tools for package owners.