feat: use Standard Go Project Layout as project structure template

This commit is contained in:
П$iх 2022-08-07 00:56:50 +03:00
parent 7b75541300
commit 2eaad07c50
5 changed files with 42 additions and 11 deletions

View File

@ -18,19 +18,36 @@
/.gitlab-ci.yml /.gitlab-ci.yml
/.golangci.yaml /.golangci.yaml
# OS # Mac OS X files
.DS_Store .DS_Store
# artefacts # Binaries for programs and plugins
*.exe *.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, build with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/
# Artefacts
/bin /bin
/build /build
/data /data
/docs /docs
# Dependency directories (remove the comment below to include it)
/node_modules /node_modules
/vendor /vendor
# environment # Environment
/.env /.env
/.env.docker /.env.docker
/config.yaml /config.yaml

26
.gitignore vendored
View File

@ -1,24 +1,38 @@
# go generations
*.exe
# IDEA project files # IDEA project files
/.idea /.idea
# Visual Studio Code workspace files # Visual Studio Code workspace files
/.vscode /.vscode
/golang-app.code-workspace /golang-app.code-workspace
# OS # Mac OS X files
.DS_Store .DS_Store
# artefacts # Binaries for programs and plugins
*.exe *.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, build with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/
# Artefacts
/bin /bin
/build /build
/data /data
# Dependency directories (remove the comment below to include it)
/node_modules /node_modules
/vendor /vendor
# environment # Environment
/.env /.env
/.env.docker /.env.docker
/config.yaml /config.yaml

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"golang-app/config" "golang-app/pkg/config"
"log" "log"
) )