This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main_test | |
| import ( | |
| "encoding/xml" | |
| "io" | |
| "testing" | |
| "github.com/stretchr/testify/assert" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package failfast | |
| import ( | |
| "context" | |
| "sync" | |
| ) | |
| // FailFastWG allow synchronization between multiple parallel goroutines. | |
| // If one fails, the common context is cancelled and the others should return. | |
| type WaitGroup struct { |