Chromium Code Reviews
Descriptionenviron: Fix key case, add GetEmpty and Remove.
The "environ" package does not ignore the case of enviornment variable
keys on Windows. This patch fixes this bug by allowing an Env to be
configured to be case insensitive, and having Windows systems default to
"true".
Creation methods "System" and "New" will both default to the case
sensitivity of the current operating system.
Additionally, this patch adds Remove, which allows for the deletion of
enviornment variables, and GetEmpty, which offers an interface similar
to "os.Getenv".
BUG=chromium:714165
TEST=unit
Review-Url: https://codereview.chromium.org/2833073004
Committed: https://github.com/luci/luci-go/commit/fde97cf33c7fad766b10ad40b5cbc10830d5749f
Patch Set 1 #Patch Set 2 : simplify and test map #Patch Set 3 : reintroduce split function, but cleaner #Patch Set 4 : better comment #Patch Set 5 : add case sensitivity support #Patch Set 6 : better doc #Patch Set 7 : cleanup, consistency, comments, clone fix #Patch Set 8 : fix test #
Messages
Total messages: 18 (9 generated)
|
||||||||||||||||||||||||||||