mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
feat: add Gopkg manifests, move fixtures to testdata, add vendor dependencies
This commit is contained in:
parent
ba1cf6a030
commit
127eb5cfbc
68 changed files with 534 additions and 68 deletions
25
vendor/github.com/tj/go-debug/example/multiple.go
generated
vendored
Normal file
25
vendor/github.com/tj/go-debug/example/multiple.go
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package main
|
||||
|
||||
import . "github.com/visionmedia/go-debug"
|
||||
import "time"
|
||||
|
||||
var a = Debug("multiple:a")
|
||||
var b = Debug("multiple:b")
|
||||
var c = Debug("multiple:c")
|
||||
|
||||
func work(debug DebugFunction, delay time.Duration) {
|
||||
for {
|
||||
debug("doing stuff")
|
||||
time.Sleep(delay)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
q := make(chan bool)
|
||||
|
||||
go work(a, 1000*time.Millisecond)
|
||||
go work(b, 250*time.Millisecond)
|
||||
go work(c, 100*time.Millisecond)
|
||||
|
||||
<-q
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue