go-clean-code-template

module
v0.0.0-...-72c8848 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MIT

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

Path Synopsis
internal
cli
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL