{"id":13413690,"url":"https://github.com/mattn/gom","last_synced_at":"2025-12-17T04:26:48.189Z","repository":{"id":57490865,"uuid":"12745404","full_name":"mattn/gom","owner":"mattn","description":"Go Manager - bundle for go","archived":true,"fork":false,"pushed_at":"2019-07-26T06:31:14.000Z","size":122,"stargazers_count":1382,"open_issues_count":14,"forks_count":92,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-10-25T05:24:36.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattn.png","metadata":{"files":{"readme":"README.mkd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-11T02:08:59.000Z","updated_at":"2024-08-17T13:49:27.000Z","dependencies_parsed_at":"2022-08-30T02:30:33.157Z","dependency_job_id":null,"html_url":"https://github.com/mattn/gom","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/mattn%2Fgom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattn%2Fgom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattn%2Fgom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattn%2Fgom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattn","download_url":"https://codeload.github.com/mattn/gom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243635741,"owners_count":20322988,"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":[],"created_at":"2024-07-30T20:01:46.534Z","updated_at":"2025-12-17T04:26:43.143Z","avatar_url":"https://github.com/mattn.png","language":"Go","readme":"gom - Go Manager\n================\n\n[![Build Status](https://travis-ci.org/mattn/gom.png?branch=master)](https://travis-ci.org/mattn/gom)\n\nWhy\n---\n\nThe `go get` command is useful. But we want to fix the problem where package versions are different from the latest update.\nAre you going to do `go get -tags=1.1 ...`, `go get -tag=0.3` for each of them? We want to freeze package version.\nRuby's bundle is awesome.\n\nInstallation\n------------\n\n    go get github.com/mattn/gom\n\nGomfile\n-------\n\n    gom 'github.com/mattn/go-runewidth', :tag =\u003e 'go1'\n    gom 'github.com/mattn/go-scan', :commit =\u003e 'ecb144fb1f2848a24ebfdadf8e64380406d87206'\n    gom 'github.com/daviddengcn/go-colortext'\n    gom 'github.com/mattn/go-ole', :goos =\u003e 'windows'\n\n    # Execute only in the \"test\" environment.\n    group :test do\n        gom 'github.com/mattn/go-sqlite3'\n    end\n\n    # Execute only for the \"custom_group\" group.\n    group :custom_group do\n        gom 'github.com/golang/lint/golint'\n    end\n    \nBy default `gom install` install all packages, except those in the listed groups.\nYou can install packages from groups based on the environment using flags (`development`, `test` \u0026 `production`) : `gom -test install`\n\nCustom groups my be specified using the -groups flag : `gom -test -groups=custom_group,special install`\n\nUsage\n-----\n\nCreate \\_vendor directory and bundle packages into it\n\n    gom install\n\nBuild on current directory with \\_vendor packages\n\n    gom build\n\nRun tests on current directory with \\_vendor packages\n\n    gom test\n\nGenerate .travis.yml that uses `gom test`\n\n    gom gen travis-yml\n\nYou can always change the name relative to the current `$GOPATH` directory using an environment variable: `GOM_VENDOR_NAME`\n\n```bash\n$ # to use a regular $GOPATH/src folder you should specify GOM_VENDOR_NAME equal '.'\n$ GOM_VENDOR_NAME=. gom \u003ccommand\u003e\n```\n\nTutorial\n--------\n\nWriting Gomfile and bundle\n\n    $ ls\n    main.go\n\n    $ gom gen gomfile\n\n    $ cat Gomfile\n    gom 'github.com/daviddengcn/go-colortext'\n    gom 'github.com/mattn/go-runewidth'\n\n    $ gom install\n    installing github.com/daviddengcn/go-colortext\n    installing github.com/mattn/go-runewidth\n\n    $ find \\_vendor/src -maxdepth 2\n    \\_vendor/src\n    \\_vendor/src/github.com\n    \\_vendor/src/github.com/daviddengcn\n    \\_vendor/src/github.com/mattn\n\n    $ gom build\n\nIf you want to bundle specified tag, branch or commit\n\n    gom 'github.com/mattn/go-runewidth', :tag =\u003e 'tag_name'\n    gom 'github.com/mattn/go-runewidth', :branch =\u003e 'branch_name'\n    gom 'github.com/mattn/go-runewidth', :commit =\u003e 'commit_name'\n    \nIf you want to bundle a repository that `go get` can't access\n\n    gom 'github.com/username/repository', :command =\u003e 'git clone http://example.com/repository.git'\n\nIf you want to change local repository directory with command 'git clone', also skipdep and insecure, which is useful in internal network environment.\n\n    gom 'github.com/username/repository', :private =\u003e 'true', :target =\u003e 'repository', :insecure=\u003e'true', :skipdep=\u003e'true' \n\nTodo\n----\n\n* Documentation\n\nAuthor\n------\n\nYasuhiro Matsumoto mattn.jp@gmail.com\n\nLicense\n-------\n\nMIT: http://mattn.mit-license.org/2013\n","funding_links":[],"categories":["开源类库","Package Management","包管理","Go","Open source library","Go语言包管理","\u003cspan id=\"包管理-package-management\"\u003e包管理 Package Management\u003c/span\u003e","Go Compile Helpers","Relational Databases"],"sub_categories":["依赖管理","HTTP Clients","HTTP客户端","Dependency Management","Advanced Console UIs","ORM","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","OpenGL","Contents","交流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattn%2Fgom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattn%2Fgom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattn%2Fgom/lists"}