Add missing files
This commit is contained in:
12
testutil/testutil.go
Normal file
12
testutil/testutil.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package testutil
|
||||
|
||||
import "os"
|
||||
|
||||
var localhost = "localhost"
|
||||
|
||||
func GetLocalHost() string {
|
||||
if dockerHostVar := os.Getenv("DOCKER_HOST"); dockerHostVar != "" {
|
||||
return dockerHostVar
|
||||
}
|
||||
return localhost
|
||||
}
|
||||
Reference in New Issue
Block a user