MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / Location

Function Location

configs/location.go:17–23  ·  view source on GitHub ↗

Location return absolute path of the configs yml file

(rel string)

Source from the content-addressed store, hash-verified

15
16// Location return absolute path of the configs yml file
17func Location(rel string) string {
18 if filepath.IsAbs(rel) {
19 return rel
20 }
21
22 return filepath.Join(basePath, rel)
23}
24
25func Path(rel string) string {
26 return Location(rel)

Callers 9

getConfigFromLocalFunction · 0.92
getConfigFromLocalFunction · 0.92
getConfigFromLocalFunction · 0.92
getConfigFromLocalFunction · 0.92
getConfigFromNacosFunction · 0.92
getConfigFromLocalFunction · 0.92
getConfigFromLocalFunction · 0.92
getConfigFromLocalFunction · 0.92
PathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected