Module Module is a collection of packages. It is better to use the module name in Domain/Module format. The module naming convention is lowercase and single-word. It should be declared in the top of go.mod file.
1 2 3 module cozyfex.com/sample1 go 1.20 GOPATH It is recommended that the package name of Root Path of the module be the same as Module. Package The package name is the directory’s name that the file exist.
Setting GOPATH The GOPATH is where external modules installed with go get are stored.
GOPATH In GoLand, you can set GOAPTH for each modules in Settings > Go > GOPATH.
Check Running Process by Port 1 netstat -plnt | grep 6666 1 tcp6 0 0 :::6666 :::* LISTEN 9591/system-atm Find Process by Port 1 lsof -i :6666 1 2 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME system-at 9591 root 3u IPv6 47760 0t0 TCP *:6666 (LISTEN) Find Out the Binary Path by Process ID 1 ls -lh /proc/9591/exe 1 lrwxrwxrwx 1 root root 0 Sep 26 16:10 /proc/9591/exe -> /bin/system-atm Kill the Process 1 kill -9 9591 Delete the Binary 1 rm /bin/system-atm