go get github.com/takecontrolsoft/[email protected]
-
to local folder -
go build -v ./...
-
to bin folder
go build -o bin/
bin/sync_server.exe /help
bin/sync_server.exe -p 3000 -d C:\Users\{username}\Pictures\FileSyncTest\ -l C:\Users\{username}\Pictures\FileSyncTest\ -n 5
or
bin/sync_server.exe -p 3000 -d /photos/ -l /log/ -n 5
go get golang.org/x/tools/cmd/godoc
export GOPATH=$HOME/go
export GOROOT=/usr/local/go/bin
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
mkdir -p $GOPATH $GOPATH/src $GOPATH/pkg $GOPATH/bin
go install golang.org/x/tools/cmd/godoc@latest
godoc -http=:8081 -index
docker build . -t tc -f Dockerfile.linux --platform linux/amd64
docker images
docker rmi tc:latest -f
sudo docker run --name mobisync -p 3000:3000 --mount type=bind,source=/mobisync,target=/data -e "LOG_LEVEL=3" takecontrolorg/sync_server:latest --add-host host.docker.internal:host-gateway
git tag v1.0.0
git push --tags
go get -u "github.com/takecontrolsoft/go_multi_log@d020e35eaecbfb8bfe32d368439d926f58d06d30"