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
|
/.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
26
.gitignore
vendored
@ -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
|
||||||
|
|||||||
2
main.go
2
main.go
@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang-app/config"
|
"golang-app/pkg/config"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user