Registry / utility / tweekmonster-luser

tweekmonster-luser

JSON →
library0.0.0-20161003172636-3fa38070dbd7gogounverified

Package luser is a drop-in replacement for os/user that allows user and group lookups in cross-compiled builds without cgo.

go get github.com/tweekmonster/luser
INSTALL
IMPORT
SIG · TWEEKMONSTER-LUSER
T
tweekmonster-luser
utilitygov0.0.0-20161003172636-3fa38070dbd7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

luser
github.com/tweekmonster/luser

Get current user without cgo

package main import ( "fmt" "github.com/tweekmonster/luser" ) func main() { current, err := luser.Current() if err != nil { panic(err) } fmt.Println(current.Username) }
Debug
Known issues
gotchaNot all os/user functions are supported; some may fall back to environment variables.
fix
Check documentation for supported functions and fallback behavior.
affects: all
Upgrade
Version history
0.0.0-20161003172636-3fa38070dbd7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
tweekmonster-luser — go get tweekmonster-luser · libregistry