feat: use Standard Go Project Layout as project structure template
This commit is contained in:
parent
7b75541300
commit
2eaad07c50
@ -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
26
.gitignore
vendored
@ -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
|
||||
|
||||
2
main.go
2
main.go
@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"golang-app/config"
|
||||
"golang-app/pkg/config"
|
||||
"log"
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user