module
Version:
v0.0.0-...-72c8848
Opens a new window with list of versions in this module.
Published: Apr 17, 2024
License: MIT
Opens a new window with license information.
README
¶
go-clean-code-template
This project is a clean architecture template implemented in Go. The concept of clean architecture can be referred to through the link provided below.
Deploy
# systemd config
cp ./examples/go-template-project.service /etc/systemd/system/go-template.service
# bin
cp ./dist/go-template-project /usr/local/bin/go-template
# config
mkdir /etc/go-template
cp ./examples/config.json /etc/go-template/config.json
Enable our service,
systemctl daemon-reload
systemctl enable go-template
systemctl start go-template
systemctl status go-template
# uninstall
systemctl stop go-template
systemctl disable go-template
systemctl daemon-reload
启动后查看对应的日志,
journalctl -u go-template -f
Directories
¶
|
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
usecase
Package usecase: This file contains the implementation of the application service for the user domain.
|
Package usecase: This file contains the implementation of the application service for the user domain. |
|
|
Click to show internal directories.
Click to hide internal directories.