{"id":51413,"library":"tweekmonster-luser","title":"Luser","description":"Package luser is a drop-in replacement for os/user that allows user and group lookups in cross-compiled builds without cgo.","status":"active","version":"0.0.0-20161003172636-3fa38070dbd7","language":"go","source_language":null,"source_url":"https://github.com/tweekmonster/luser","tags":["user","cross-compilation","cgo","system"],"install":[{"cmd":"go get github.com/tweekmonster/luser","lang":"bash","label":"Install github.com/tweekmonster/luser"}],"dependencies":[],"imports":[{"symbol":"luser","correct":"github.com/tweekmonster/luser"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/tweekmonster/luser\"\n)\n\nfunc main() {\n\tcurrent, err := luser.Current()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(current.Username)\n}","lang":"go","description":"Get current user without cgo"},"warnings":[{"fix":"Check documentation for supported functions and fallback behavior.","message":"Not all os/user functions are supported; some may fall back to environment variables.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'allow':13 'build':22 'cgo':24,29 'compil':21,28 'cross':20,27 'cross-compil':19,26 'drop':7 'drop-in':6 'group':16 'lookup':17 'luser':1,3 'os/user':11 'packag':2 'replac':9 'system':30 'user':14,25 'without':23","created_at":"2026-06-15T06:13:57.436590+00:00","updated_at":"2026-06-15T06:13:57.436590+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tweekmonster/luser","github":"https://github.com/tweekmonster/luser","docs":"https://pkg.go.dev/github.com/tweekmonster/luser#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}