aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Bonventre <andybons@golang.org>2018-06-25 14:26:53 -0400
committerAndrew Bonventre <andybons@golang.org>2018-06-25 18:59:39 +0000
commit50bd1c4d4eb4fac8ddeb5f063c099daccfb71b26 (patch)
treed09e8c91e7c137ec23621d13fcb065103576526d /api
parent4f172e7a75d6deef4441c96e1e01c31159f54a6c (diff)
downloadgo-50bd1c4d4eb4fac8ddeb5f063c099daccfb71b26.tar.gz
go-50bd1c4d4eb4fac8ddeb5f063c099daccfb71b26.zip
os: have UserCacheDir return an error on failure
Previously, it would return an empty string if it could not determine the user's cache directory. Return an error instead. Change-Id: I74f00b1ad3858efa3fe2700c599271ebfe5764b6 Reviewed-on: https://go-review.googlesource.com/120757 Run-TryBot: Andrew Bonventre <andybons@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'api')
-rw-r--r--api/go1.11.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/go1.11.txt b/api/go1.11.txt
index d8428b288f..1c641eac51 100644
--- a/api/go1.11.txt
+++ b/api/go1.11.txt
@@ -451,7 +451,7 @@ pkg net/http/httptrace, type ClientTrace struct, Got1xxResponse func(int, textpr
pkg os, const ModeIrregular = 524288
pkg os, const ModeIrregular FileMode
pkg os, const ModeType = 2399666176
-pkg os, func UserCacheDir() string
+pkg os, func UserCacheDir() (string, error)
pkg os/signal, func Ignored(os.Signal) bool
pkg regexp/syntax, method (Op) String() string
pkg runtime/trace, func IsEnabled() bool