{"id":52116,"library":"nightlyone-lockfile","title":"Lockfile","description":"Package lockfile handles pid file based locking.","status":"active","version":"1.0.0","language":"go","source_language":null,"source_url":"https://github.com/nightlyone/lockfile","tags":["lockfile","pid","locking","process"],"install":[{"cmd":"go get github.com/nightlyone/lockfile","lang":"bash","label":"Install github.com/nightlyone/lockfile"}],"dependencies":[],"imports":[{"symbol":"lockfile","correct":"github.com/nightlyone/lockfile"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/nightlyone/lockfile\"\n)\n\nfunc main() {\n\tlock, _ := lockfile.New(\"/tmp/my.lock\")\n\terr := lock.TryLock()\n\tif err != nil {\n\t\tfmt.Println(\"Lock failed\")\n\t}\n}","lang":"go","description":"Create and try to acquire a lockfile"},"warnings":[],"env_vars":null,"search_vec":"'base':7 'file':6 'handl':4 'lock':8,11 'lockfil':1,3,9 'packag':2 'pid':5,10 'process':12","created_at":"2026-06-15T06:41:53.713916+00:00","updated_at":"2026-06-15T06:41:53.713916+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/nightlyone/lockfile","github":"https://github.com/nightlyone/lockfile","docs":"https://pkg.go.dev/github.com/nightlyone/lockfile#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}}