Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Current ¶
Current is a portable implementation to determine the current user. Golang's user.Current does not work reliably under docker or 32bit linux
Two issues this code handles :-
Docker Container - For static binaries NSS library will not be a part of the static binary hence user.Current() fails. Linux Intel 32 bit - CGO is not enabled so it will not link with NSS library.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.