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
/.golangci.yaml
# OS
# Mac OS X files
.DS_Store
# artefacts
# Binaries for programs and plugins
*.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
/build
/data
/docs
# Dependency directories (remove the comment below to include it)
/node_modules
/vendor
# environment
# Environment
/.env
/.env.docker
/config.yaml
/config.yaml

26
.gitignore vendored
View File

@ -1,24 +1,38 @@
# go generations
*.exe
# IDEA project files
/.idea
# Visual Studio Code workspace files
/.vscode
/golang-app.code-workspace
# OS
# Mac OS X files
.DS_Store
# artefacts
# Binaries for programs and plugins
*.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
/build
/data
# Dependency directories (remove the comment below to include it)
/node_modules
/vendor
# environment
# Environment
/.env
/.env.docker
/config.yaml

View File

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