Skip to content

Commit f71f7ce

Browse files
committed
feat: Add golang template and first Makefile
1 parent ba4a96a commit f71f7ce

File tree

20 files changed

+205
-0
lines changed

20 files changed

+205
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.keep

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DEFAULT_GOAL := help
2+
3+
help: ## Show this help
4+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

api/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# `/api`
2+
3+
OpenAPI/Swagger specs, JSON schema files, protocol definition files.
4+
5+
Examples:
6+
7+
* https://github.com/kubernetes/kubernetes/tree/master/api
8+
* https://github.com/moby/moby/tree/master/api

assets/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `/assets`
2+
3+
Other assets to go along with your repository (images, logos, etc).

build/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# `/build`
2+
3+
Packaging and Continuous Integration.
4+
5+
Put your cloud (AMI), container (Docker), OS (deb, rpm, pkg) package configurations and scripts in the `/build/package` directory.
6+
7+
Put your CI (travis, circle, drone) configurations and scripts in the `/build/ci` directory. Note that some of the CI tools (e.g., Travis CI) are very picky about the location of their config files. Try putting the config files in the `/build/ci` directory linking them to the location where the CI tools expect them when possible (don't worry if it's not and if keeping those files in the root directory makes your life easier :-)).
8+
9+
Examples:
10+
11+
* https://github.com/cockroachdb/cockroach/tree/master/build

cmd/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `/cmd`
2+
3+
Main applications for this project.
4+
5+
The directory name for each application should match the name of the executable you want to have (e.g., `/cmd/myapp`).
6+
7+
Don't put a lot of code in the application directory. If you think the code can be imported and used in other projects, then it should live in the `/pkg` directory. If the code is not reusable or if you don't want others to reuse it, put that code in the `/internal` directory. You'll be surprised what others will do, so be explicit about your intentions!
8+
9+
It's common to have a small `main` function that imports and invokes the code from the `/internal` and `/pkg` directories and nothing else.
10+
11+
Examples:
12+
13+
* https://github.com/heptio/ark/tree/master/cmd (just a really small `main` function with everything else in packages)
14+
* https://github.com/moby/moby/tree/master/cmd
15+
* https://github.com/prometheus/prometheus/tree/master/cmd
16+
* https://github.com/influxdata/influxdb/tree/master/cmd
17+
* https://github.com/kubernetes/kubernetes/tree/master/cmd
18+
* https://github.com/dapr/dapr/tree/master/cmd
19+
* https://github.com/ethereum/go-ethereum/tree/master/cmd

configs/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# `/configs`
2+
3+
Configuration file templates or default configs.
4+
5+
Put your `confd` or `consul-template` template files here.

deployments/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `/deployments`
2+
3+
IaaS, PaaS, system and container orchestration deployment configurations and templates (docker-compose, kubernetes/helm, mesos, terraform, bosh).

docs/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# `/docs`
2+
3+
Design and user documents (in addition to your godoc generated documentation).
4+
5+
Examples:
6+
7+
* https://github.com/gohugoio/hugo/tree/master/docs
8+
* https://github.com/openshift/origin/tree/master/docs
9+
* https://github.com/dapr/dapr/tree/master/docs

examples/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# `/examples`
2+
3+
Examples for your applications and/or public libraries.
4+
5+
Examples:
6+
7+
* https://github.com/nats-io/nats.go/tree/master/examples
8+
* https://github.com/docker-slim/docker-slim/tree/master/examples
9+
* https://github.com/gohugoio/hugo/tree/master/examples
10+
* https://github.com/hashicorp/packer/tree/master/examples

0 commit comments

Comments
 (0)