{"id":19620714,"url":"https://github.com/huckridgesw/clipboard","last_synced_at":"2026-05-01T23:34:17.021Z","repository":{"id":144204505,"uuid":"225497461","full_name":"HuckRidgeSW/clipboard","owner":"HuckRidgeSW","description":"Access to the Mac clipboard in Go, using native APIs, not pbcopy/pbpaste","archived":false,"fork":false,"pushed_at":"2019-12-03T01:59:42.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T11:25:43.573Z","etag":null,"topics":["clipboard","darwin","go","macos"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HuckRidgeSW.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-03T00:46:25.000Z","updated_at":"2020-02-13T17:01:14.000Z","dependencies_parsed_at":"2023-07-05T00:02:10.997Z","dependency_job_id":null,"html_url":"https://github.com/HuckRidgeSW/clipboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuckRidgeSW%2Fclipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuckRidgeSW%2Fclipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuckRidgeSW%2Fclipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuckRidgeSW%2Fclipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuckRidgeSW","download_url":"https://codeload.github.com/HuckRidgeSW/clipboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240914833,"owners_count":19878051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["clipboard","darwin","go","macos"],"created_at":"2024-11-11T11:19:46.387Z","updated_at":"2026-05-01T23:34:16.979Z","avatar_url":"https://github.com/HuckRidgeSW.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clipboard\nAccess to the Mac clipboard (which it calls a pasteboard) in Go, using native\nAPIs, not pbcopy/pbpaste.\n\nThe Mac pasteboard stores items with a type (string, image, url, etc).  This\nlibrary currently reads \u0026 writes only strings.\n\n# Import\n\n```go\nimport \t\"github.com/huckridgesw/clipboard\"\n```\n\n# Copy \u0026 Paste\n\n```go\n// write a string to the pasteboard -- \"copy\"\nclipboard.Set(\"a string\")\n\n// read a string from the pasteboard -- \"paste\"\nif s, ok := clipboard.Get(); ok {\n  // do something with s\n}\n```\n\n`Get` will only fail (return with `ok` == `false`) if there are no strings in\nthe pasteboard, or your program runs out of memory and `malloc` returns `NULL`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuckridgesw%2Fclipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuckridgesw%2Fclipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuckridgesw%2Fclipboard/lists"}