{"id":17573831,"url":"https://github.com/freeformz/bits","last_synced_at":"2025-03-29T15:29:15.824Z","repository":{"id":57498319,"uuid":"210919542","full_name":"freeformz/bits","owner":"freeformz","description":"Random bits of code","archived":false,"fork":false,"pushed_at":"2019-11-18T18:04:01.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:54:14.258Z","etag":null,"topics":["experimental","go","golang","mage"],"latest_commit_sha":null,"homepage":"","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/freeformz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-25T19:02:42.000Z","updated_at":"2023-11-02T22:26:00.000Z","dependencies_parsed_at":"2022-08-28T16:11:27.507Z","dependency_job_id":null,"html_url":"https://github.com/freeformz/bits","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeformz%2Fbits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeformz%2Fbits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeformz%2Fbits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeformz%2Fbits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freeformz","download_url":"https://codeload.github.com/freeformz/bits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246203495,"owners_count":20740140,"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":["experimental","go","golang","mage"],"created_at":"2024-10-21T21:04:58.083Z","updated_at":"2025-03-29T15:29:15.776Z","avatar_url":"https://github.com/freeformz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bits\n\n### Quick Start\n\n```console\n$ export BITS_VERSION=\"$(curl -s https://api.github.com/repos/freeformz/bits/releases/latest | grep tag_name | awk '{ sub(/\"/, \"\", $2); sub(/\",/, \"\", $2); print $2 }')\"\n$ go mod init \u003cmodule name\u003e\n$ go get github.com/freeformz/bits/cmd/setup@${BITS_VERSION}\n$ git init .\n$ git add go.mod go.sum\n$ git commit -avm \"new go module w/bits\"\n$ go run github.com/freeformz/bits/cmd/setup\ngo run github.com/freeformz/bits/cmd/setup\n\nRepo directory: \"/Users/emuller/devel/\u003cproject\u003e\"\nMagefile: \"/Users/emuller/devel/\u003cproject\u003e/magefile.go\"\ngo.mod: \"/Users/emuller/devel/\u003cproject\u003e/go.mod\"\n.golangci.tml: \"/Users/emuller/devel/\u003cproject\u003e/.golangci.yml\"\n.gitignore: \"/Users/emuller/devel/\u003cproject\u003e/.gitignore\"\n\nModule Name: \"github.com/heroku/\u003cproject\u003e\"\nCurrent major Go version: go1.13\n\nsetup complete!\n\nFiles to take a look at:\n/Users/emuller/devel/\u003cproject\u003e/magefile.go: Magefile used to configure bits / write additional tasks\n/Users/emuller/devel/\u003cproject\u003e/.golangci.yml: Golangci-lint config file\n/Users/emuller/devel/\u003cproject\u003e/.gitignore: git ignore file\n/Users/emuller/devel/\u003cproject\u003e/.circleci/config.yml: CircleCI config file\n\nDon't forget to commit the changes/new files.\n\nRun 'mage -f' to see the initial set of mage targets.\n```\n\nCreates a defaults magefile.go, .circleci config, .gitignore, \u0026 .golangci.yml\n\n```console\n$ mage -f\nTargets:\n  go:checkVersion        checks that the version of go being used is the version specified or the latest version\n  go:cover               runs go tool cover with default args set from `CoverArgs`\n  go:coverage            opens the coverage output in your browser (runs \"go tool cover -html=coverage.out\")\n  go:test                runs `go test` with default args set from `TestArgs`\n  golangcilint:remove    removes all cached versions of golangci-lint\n  golangcilint:run       runs golangci-lint using RunArgs\n```\n\n### Targets\n\n#### Go Namespace\n\n`go:checkVersion` - Asserts that the version is use is the version specified. If the version specified ends in `.x` or only has two parts (`go1.13`) it is expanded to the most recent patch version of that go release. Modify the version by specifying `gons.Version` in your magefile.\n\n`go:cover` - Generate cover file. Modify the arguments by specifying `gons.CoverArgs` in your magefile.\n\n`go:coverage` - Generates coverage information and opens it in your browser. Modify the arguments by specifying `gons.CoverArgs` in your magefile.\n\n`go:test` - Runs go test. Modify the arguments by specifying `gons.TestArgs` in your magefile.\n\n#### Tool Namespace\n\n`golangclilint:remove` - Removes all cached versions of golangci-lint.\n\n`golangcilint:run` - Runs golangci-lint. Modify the arguments by specifying `toolns.GolangciLint.RunArgs` and change the version by specifying `toolns.GolangciLint.Version` in your magefile.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreeformz%2Fbits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreeformz%2Fbits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreeformz%2Fbits/lists"}