To init go module
go mod init example.com/m
To install github dependency
go get github.com/go-sql-driver/mysql
- Add the service to systemd.
- sudo systemctl enable
<filename>
.service
- Activate the service.
- sudo systemctl start
<filename>
.service
- Check if systemd started it.
- sudo systemctl status
<filename
.service
- Stop systemd if so desired.
- sudo systemctl stop
<filename>
.service
- Reload systemctl
- sudo systemctl daemon-reload