{"id":13413463,"url":"https://github.com/wajox/gobase","last_synced_at":"2026-01-12T02:54:49.999Z","repository":{"id":49814116,"uuid":"321731615","full_name":"wajox/gobase","owner":"wajox","description":"This is a simple skeleton for golang applications","archived":false,"fork":false,"pushed_at":"2023-06-21T15:14:39.000Z","size":12907,"stargazers_count":60,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-31T20:52:22.214Z","etag":null,"topics":["golang","skeleton","template"],"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/wajox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-12-15T16:54:20.000Z","updated_at":"2024-07-06T14:08:42.000Z","dependencies_parsed_at":"2024-01-08T15:34:44.333Z","dependency_job_id":null,"html_url":"https://github.com/wajox/gobase","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wajox%2Fgobase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wajox%2Fgobase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wajox%2Fgobase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wajox%2Fgobase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wajox","download_url":"https://codeload.github.com/wajox/gobase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243635460,"owners_count":20322943,"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":["golang","skeleton","template"],"created_at":"2024-07-30T20:01:40.942Z","updated_at":"2026-01-12T02:54:49.993Z","avatar_url":"https://github.com/wajox.png","language":"Go","readme":"# GoBase\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Go Report Card](https://goreportcard.com/badge/github.com/wajox/gobase)](https://goreportcard.com/report/github.com/wajox/gobase)\n[![Go Reference](https://pkg.go.dev/badge/github.com/wajox/gobase.svg)](https://pkg.go.dev/github.com/wajox/gobase)\n[![codecov](https://codecov.io/gh/wajox/gobase/branch/master/graph/badge.svg?token=0K79C2LH2K)](https://codecov.io/gh/wajox/gobase)\n[![Build Status](https://travis-ci.org/wajox/gobase.svg?branch=master)](https://travis-ci.org/wajox/gobase)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n\nThis is a simple skeleton for golang application. Inspired by development experience and updated according to github.com/golang-standards/project-layout.\n\n## How to use?\n\n1. Clone the repository (with git client `git clone github.com/wajox/gobase [project_name]` or use it as template on github for creating a new project)\n2. replace `github.com/wajox/gobase` with `[your_pkg_name]` in the all files\n\n## Structure\n\n* /api - OpenAPI specs, documentation generated by swag\n* /cmd - apps\n* /db - database migrations and seeds\n* /docs - documentation\n* /internal - application sources for internal usage\n* /pkg - application sources for external usage(SDK and libraries)\n* /test - some stuff for testing purposes\n\n## Commands\n```sh\n# install dev tools(wire, golangci-lint, swag, ginkgo)\nmake install-tools\n\n# start test environment from docker-compose-test.yml\nmake start-docker-compose-test\n\n# stop test environment from docker-compose-test.yml\nmake stop-docker-compose-test\n\n# build application\nmake build\n\n# run all tests\nmake test-all\n\n# run go generate\nmake gen\n\n# generate OpenAPI docs with swag\nmake swagger\n\n# generate source code from .proto files\nmake proto\n\n# generate dependencies with wire\nmake deps\n```\n\n## Create new project\n\n## With [clonegopkg](https://github.com/wajox/clonegopkg)\n\n```sh\n# install clonegopkg\ngo install github.com/wajox/clonegopkg@latest\n\n# create your project\nclonegopkg clone git@github.com:wajox/gobase.git github.com/wajox/newproject\n\n# push to your git repository\ncd ~/go/src/github.com/wajox/newproject\ngit add .\ngit commit -m \"init project from gobase template\"\ngit remote add origin git@github.com:wajox/newproject.git\ngit push origin master\n\n```\n\n\n## Tools and packages\n* gin-gonic\n* ginkgo with gomega\n* spf13/viper\n* spf13/cobra\n* envy\n* zerolog\n* golangci-lint\n* wire\n* swag\n* migrate\n* protoc\n* jsonapi\n* docker with docker-compose\n","funding_links":[],"categories":["Miscellaneous","杂项","Microsoft Office","Project Layout"],"sub_categories":["Project Layout","项目布局"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwajox%2Fgobase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwajox%2Fgobase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwajox%2Fgobase/lists"}