Commit eff3de0e authored by David Heuschmann's avatar David Heuschmann Committed by Ian Lance Taylor
Browse files

os/user: note in doc that user.Current is being cached

user.Current caches the current user after its first call, so changes to
the uid after the first call will not affect its result. As this might
be unexpected, it should be mentioned in the docs.

Fixes #27659

Change-Id: I8b3323d55441d9a79bc9534c6490884d8561889b
Reviewed-on: https://go-review.googlesource.com/136315


Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 36a3d4f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment