{"id":53469,"library":"peercred","title":"Peercred","description":"Package peercred maps from a net.Conn to information about the other side of the connection using OS-specific facilities.","status":"active","version":"0.0.0-20210906144145-0893ea02156a","language":"go","source_language":null,"source_url":"https://github.com/inetaf/peercred","tags":["networking","credentials","security","unix"],"install":[{"cmd":"go get inet.af/peercred","lang":"bash","label":"Install inet.af/peercred"}],"dependencies":[],"imports":[{"symbol":"peercred","correct":"inet.af/peercred"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"inet.af/peercred\"\n\t\"net\"\n)\n\nfunc main() {\n\tconn, _ := net.Dial(\"tcp\", \"example.com:80\")\n\tcreds, err := peercred.Get(conn)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\tfmt.Println(creds)\n}","lang":"go","description":"Retrieves peer credentials from a network connection."},"warnings":[],"env_vars":null,"search_vec":"'connect':16 'credenti':23 'facil':21 'inform':9 'map':4 'net.conn':7 'network':22 'os':19 'os-specif':18 'packag':2 'peercr':1,3 'secur':24 'side':13 'specif':20 'unix':25 'use':17","created_at":"2026-06-15T07:40:47.870349+00:00","updated_at":"2026-06-15T07:40:47.870349+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/inetaf/peercred","github":"https://github.com/inetaf/peercred","docs":"https://pkg.go.dev/inet.af/peercred#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","auth"],"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}}