{"id":19159110,"url":"https://github.com/miloas/pre-commit-golang","last_synced_at":"2025-08-23T09:12:40.879Z","repository":{"id":98183642,"uuid":"222872008","full_name":"Miloas/pre-commit-golang","owner":"Miloas","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-03T08:44:17.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T22:21:46.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Miloas.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-11-20T07:00:02.000Z","updated_at":"2022-03-03T06:28:44.000Z","dependencies_parsed_at":"2023-06-29T17:15:30.734Z","dependency_job_id":null,"html_url":"https://github.com/Miloas/pre-commit-golang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Miloas/pre-commit-golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Fpre-commit-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Fpre-commit-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Fpre-commit-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Fpre-commit-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miloas","download_url":"https://codeload.github.com/Miloas/pre-commit-golang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miloas%2Fpre-commit-golang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746301,"owners_count":24813557,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-09T08:47:42.382Z","updated_at":"2025-08-23T09:12:40.852Z","avatar_url":"https://github.com/Miloas.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\npre-commit-golang\n=================\n\ngolang hooks for http://pre-commit.com/\n\n### Using these hooks\n\nAdd this to your `.pre-commit-config.yaml`\n\n    - repo: git://github.com/dnephin/pre-commit-golang\n      rev: master\n      hooks:\n        - id: go-fmt\n        - id: validate-toml\n        - id: go-unit-tests\n        - id: go-build\n        - id: go-mod-tidy\n        - id: revive\n\n### Available hooks\n\n- `go-fmt` - Runs `gofmt`, requires golang\n- `validate-toml` - Runs `tomlv`, requires\n   https://github.com/BurntSushi/toml/tree/master/cmd/tomlv\n- `go-unit-tests` - run `go test -tags=unit -timeout 30s -short -v`\n- `go-build` - run `go build`, requires golang\n- `revive` - run `revive -config defaults.toml --formatter friendly ./...`, requires [revive](https://github.com/mgechev/revive)\n- `buf` - run `buf lint`, requires [buf](https://github.com/bufbuild/buf)\n\n### NOTICE\n\nThis project fork from `https://github.com/dnephin/pre-commit-golang`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiloas%2Fpre-commit-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiloas%2Fpre-commit-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiloas%2Fpre-commit-golang/lists"}