{"id":38167930,"url":"https://github.com/shettyh/tlock","last_synced_at":"2026-01-16T23:23:30.300Z","repository":{"id":56159844,"uuid":"259819988","full_name":"shettyh/tlock","owner":"shettyh","description":"Golang Lock with Timeout","archived":false,"fork":false,"pushed_at":"2020-11-24T02:41:02.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-07-28T12:59:14.048Z","etag":null,"topics":["go","mutex-lock","timeout"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shettyh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-29T04:01:33.000Z","updated_at":"2020-11-23T14:55:46.000Z","dependencies_parsed_at":"2022-08-15T13:50:35.626Z","dependency_job_id":null,"html_url":"https://github.com/shettyh/tlock","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/shettyh/tlock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettyh%2Ftlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettyh%2Ftlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettyh%2Ftlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettyh%2Ftlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shettyh","download_url":"https://codeload.github.com/shettyh/tlock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shettyh%2Ftlock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28487586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T22:54:02.790Z","status":"ssl_error","status_checked_at":"2026-01-16T22:50:10.344Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","mutex-lock","timeout"],"created_at":"2026-01-16T23:23:30.198Z","updated_at":"2026-01-16T23:23:30.274Z","avatar_url":"https://github.com/shettyh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TLock\n![Build](https://github.com/shettyh/tlock/workflows/Go/badge.svg?branch=master)\n\nSimple Golang Lock with Timeout support.\n\n## Install\n- `go get github.com/shettyh/tlock`\n\n## How to use\n\n```go\n// Create lock\ntlock := tlock.New()\n\n//blocking Lock/unlock\ntlock.Lock()\ndefer tlock.Unlock()\n\n\n// non-blocking lock/unlock\nif tlock.TryLock() {\n    defer tlock.Unlock()\n    ...\n}\n\n\n// block lock/unlock with timeout\nif tlock.TryLockWithTimeout(time.Seconds * 10 ) {\n    defer tlock.Unlock()\n    ...\n}\n```\n\nFor detailed example please check the examples folder\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshettyh%2Ftlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshettyh%2Ftlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshettyh%2Ftlock/lists"}