A small example repository showing how to issue conditional writes with v2 of AWS's Go SDK and run integration tests with MinIO. There's a short discussion on my blog.
With the Docker daemon running (or socket-activated), run the tests with
make test or go test ..
Important
Don't import this code. Copy it into your project and customize it instead! It's under the MIT License, so you should be able to use it nearly anywhere.