build: upgrade dependencies and build with go 1.21
This commit is contained in:
22
vendor/github.com/testcontainers/testcontainers-go/internal/testcontainerssession/session.go
generated
vendored
Normal file
22
vendor/github.com/testcontainers/testcontainers-go/internal/testcontainerssession/session.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package testcontainerssession
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
var id uuid.UUID
|
||||
var idOnce sync.Once
|
||||
|
||||
func ID() uuid.UUID {
|
||||
idOnce.Do(func() {
|
||||
id = uuid.New()
|
||||
})
|
||||
|
||||
return id
|
||||
}
|
||||
|
||||
func String() string {
|
||||
return ID().String()
|
||||
}
|
Reference in New Issue
Block a user