Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
14
pkg/testhelper/file_paths.go
Normal file
14
pkg/testhelper/file_paths.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package testhelper
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func GetSchemaDirPath() string {
|
||||
_, fn, _, _ := runtime.Caller(0)
|
||||
c := strings.Split(fn, "/")
|
||||
p := strings.Join(c[:len(c)-4], "/")
|
||||
return filepath.Join(p, "cloud/3rdparty/common/schema")
|
||||
}
|
||||
Reference in New Issue
Block a user