{"id":22018125,"url":"https://github.com/rvflash/fileio","last_synced_at":"2025-06-30T08:33:06.120Z","repository":{"id":57590479,"uuid":"90174437","full_name":"rvflash/fileio","owner":"rvflash","description":"Golang interface for uploading or downloading files with file.io.","archived":false,"fork":false,"pushed_at":"2017-05-03T19:59:20.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T09:35:12.935Z","etag":null,"topics":["file-io","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rvflash.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":"2017-05-03T17:16:52.000Z","updated_at":"2017-05-05T08:55:08.000Z","dependencies_parsed_at":"2022-09-06T11:11:28.505Z","dependency_job_id":null,"html_url":"https://github.com/rvflash/fileio","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rvflash/fileio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Ffileio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Ffileio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Ffileio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Ffileio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvflash","download_url":"https://codeload.github.com/rvflash/fileio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvflash%2Ffileio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262739210,"owners_count":23356676,"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":["file-io","golang"],"created_at":"2024-11-30T05:10:00.940Z","updated_at":"2025-06-30T08:33:06.068Z","avatar_url":"https://github.com/rvflash.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File.io\n\n[![GoDoc](https://godoc.org/github.com/rvflash/fileio?status.svg)](https://godoc.org/github.com/rvflash/fileio)\n[![Build Status](https://img.shields.io/travis/rvflash/fileio.svg)](https://travis-ci.org/rvflash/fileio)\n[![Code Coverage](https://img.shields.io/codecov/c/github/rvflash/fileio.svg)](http://codecov.io/github/rvflash/fileio?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/rvflash/fileio)](https://goreportcard.com/report/github.com/rvflash/fileio)\n\n\nGolang interface for uploading or downloading files with file.io.\n\n\n### Installation\n\n```bash\n$ go get -u github.com/rvflash/fileio\n```\n\n### Usage\n\nThe import of the package and check of errors are ignored for the demo.\n\n\n#### Upload a file\n\n```go\nkey, _ := fileio.Upload(\"/data/file.txt\")\nprintln(key)\n// Output: 2ojE41\n```\n\n#### Upload a file with an expiration date (here, 7 days)\n\n```go\nkey, expiry, _ := fileio.UploadWithExpire(\"/data/file.txt\", 7)\nprintln(key + \" expires in \" + expiry)\n// Output: aQbnDJ expires in 1 week\n```\n\n#### Download a file\n\n```go\nerr := fileio.Download(\"2ojE41\", \"/tmp/file.txt\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Ffileio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvflash%2Ffileio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvflash%2Ffileio/lists"}