Skip to content

VaderKai/seata-go-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seata-go-samples

How to run samples

  1. Start the seata-server service with the docker file under the /dockercomposer folder

    git clone https://github.com/seata/seata-go-samples.git && cd dockercompose
    docker-compose -f docker-compose.yml up -d seata-server
  2. Start and run a sample, for example let's run a basic distributed transaction sample of AT

    cd at/basic
    go run main.go

How to test samples for new PR

  1. Modify the seata-go dependency version to v0.0.0-incompatible, and remove the version number if it exists in the original dependency path.

    //github.com/seata/seata-go v1.0.3
    github.com/seata/seata-go v0.0.0-incompatibl
    
  2. Find the absolute or relative path to your local code.

    /Users/mac/Desktop/GO/seata-go
    ../seata-go
    
  3. Add the replace module to the go.mod file and change it to the local code path.

    github.com/seata/seata-go =>  ../seata-go
    
  4. Synchronization dependencies.

    go mod tidy
  5. Run the sample test code.

About

samples for seata-go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.9%
  • Shell 3.1%