{"id":23390536,"url":"https://github.com/tty47/gover","last_synced_at":"2025-04-08T14:21:01.629Z","repository":{"id":107119135,"uuid":"308449670","full_name":"tty47/gover","owner":"tty47","description":"GoVer","archived":false,"fork":false,"pushed_at":"2020-10-31T22:25:37.000Z","size":3719,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T10:43:46.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tty47.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-29T21:05:25.000Z","updated_at":"2020-10-29T21:21:11.000Z","dependencies_parsed_at":"2023-03-22T18:03:47.668Z","dependency_job_id":null,"html_url":"https://github.com/tty47/gover","commit_stats":null,"previous_names":["tty47/gover"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Fgover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Fgover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Fgover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tty47%2Fgover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tty47","download_url":"https://codeload.github.com/tty47/gover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247856552,"owners_count":21007622,"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-12-22T03:32:00.380Z","updated_at":"2025-04-08T14:21:01.598Z","avatar_url":"https://github.com/tty47.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoVer\n\nIs a repository that contains differents ways to build your Go app and set the version on it.\n\n---\n## Const\nSplitted in different files in which you will define the variable values.\n\nNon prod build: \n\n[main_dev.go](https://github.com/jrmanes/gover/blob/master/const/main_dev.go)\n```go\n// +build !prod\n\n// Package name -\u003e P.E\npackage main\n\n// const which you will set with that value -\u003e P.E\nconst version = \"development\"\n```\n\n[main_prod.go](https://github.com/jrmanes/gover/blob/master/const/main_prod.go)\n```go\n//  +build prod\n\n// Package name -\u003e P.E\npackage main\n\n// const which you will set with that value -\u003e P.E\nconst version = \"production\"\n```\n---\n## Vars\nBuild go with tags for NON pro\n```go\ngo build\n```\n\nBuild go with tags for pro\n```go\ngo build -tags prod\n```\n---\n## Ldflags\nBuild go with git commit id:\n\n```go\ngo build -ldflags \"-X main.version=$(git rev-parse HEAD)\"\n```\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftty47%2Fgover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftty47%2Fgover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftty47%2Fgover/lists"}