{"id":13413590,"url":"https://github.com/jlaffaye/ftp","last_synced_at":"2025-05-16T15:02:06.601Z","repository":{"id":1471302,"uuid":"1712708","full_name":"jlaffaye/ftp","owner":"jlaffaye","description":"FTP client package for Go","archived":false,"fork":false,"pushed_at":"2025-03-25T16:17:25.000Z","size":337,"stargazers_count":1356,"open_issues_count":43,"forks_count":371,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-05-09T15:01:50.614Z","etag":null,"topics":["ftp","ftp-client","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlaffaye.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":"2011-05-06T18:31:51.000Z","updated_at":"2025-05-07T07:37:58.000Z","dependencies_parsed_at":"2023-02-16T08:46:11.535Z","dependency_job_id":"e470843b-c0d6-4675-9646-b6e5b3a5696a","html_url":"https://github.com/jlaffaye/ftp","commit_stats":{"total_commits":268,"total_committers":49,"mean_commits":5.469387755102041,"dds":0.6268656716417911,"last_synced_commit":"1b970516f5d3bc0fde96608989c97db26459371d"},"previous_names":["jlaffaye/goftp"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlaffaye%2Fftp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlaffaye%2Fftp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlaffaye%2Fftp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlaffaye%2Fftp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlaffaye","download_url":"https://codeload.github.com/jlaffaye/ftp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553936,"owners_count":22090415,"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":["ftp","ftp-client","go"],"created_at":"2024-07-30T20:01:43.943Z","updated_at":"2025-05-16T15:02:06.520Z","avatar_url":"https://github.com/jlaffaye.png","language":"Go","readme":"# goftp #\n\n[![Units tests](https://github.com/jlaffaye/ftp/actions/workflows/unit_tests.yaml/badge.svg)](https://github.com/jlaffaye/ftp/actions/workflows/unit_tests.yaml)\n[![Coverage Status](https://coveralls.io/repos/jlaffaye/ftp/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/jlaffaye/ftp?branch=master)\n[![golangci-lint](https://github.com/jlaffaye/ftp/actions/workflows/golangci-lint.yaml/badge.svg)](https://github.com/jlaffaye/ftp/actions/workflows/golangci-lint.yaml)\n[![CodeQL](https://github.com/jlaffaye/ftp/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/jlaffaye/ftp/actions/workflows/codeql-analysis.yml)\n[![Go ReportCard](https://goreportcard.com/badge/jlaffaye/ftp)](http://goreportcard.com/report/jlaffaye/ftp)\n[![Go Reference](https://pkg.go.dev/badge/github.com/jlaffaye/ftp.svg)](https://pkg.go.dev/github.com/jlaffaye/ftp)\n\nA FTP client package for Go\n\n## Install ##\n\n```\ngo get -u github.com/jlaffaye/ftp\n```\n\n## Documentation ##\n\nhttps://pkg.go.dev/github.com/jlaffaye/ftp\n\n## Example ##\n\n```go\nc, err := ftp.Dial(\"ftp.example.org:21\", ftp.DialWithTimeout(5*time.Second))\nif err != nil {\n    log.Fatal(err)\n}\n\nerr = c.Login(\"anonymous\", \"anonymous\")\nif err != nil {\n    log.Fatal(err)\n}\n\n// Do something with the FTP conn\n\nif err := c.Quit(); err != nil {\n    log.Fatal(err)\n}\n```\n\n## Store a file example ##\n\n```go\ndata := bytes.NewBufferString(\"Hello World\")\nerr = c.Stor(\"test-file.txt\", data)\nif err != nil {\n\tpanic(err)\n}\n```\n\n## Read a file example ##\n\n```go\nr, err := c.Retr(\"test-file.txt\")\nif err != nil {\n\tpanic(err)\n}\ndefer r.Close()\n\nbuf, err := ioutil.ReadAll(r)\nprintln(string(buf))\n```\n","funding_links":[],"categories":["开源类库","Networking","Go","Open source library","网络相关库","網絡","网络","Repositories","Relational Databases","\u003cspan id=\"网络-networking\"\u003e网络 Networking\u003c/span\u003e"],"sub_categories":["网络","Uncategorized","The Internet","Strings","Transliteration","暂未分类","高級控制台界面","Advanced Console UIs","高级控制台界面","音译","交流","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlaffaye%2Fftp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlaffaye%2Fftp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlaffaye%2Fftp/lists"}