MCPcopy
hub / github.com/rclone/rclone / envKey

Function envKey

fstest/testserver/testserver.go:71–73  ·  view source on GitHub ↗

envKey returns the environment variable name to set name, key

(name, key string)

Source from the content-addressed store, hash-verified

69
70// envKey returns the environment variable name to set name, key
71func envKey(name, key string) string {
72 return fmt.Sprintf("RCLONE_CONFIG_%s_%s", strings.ToUpper(name), strings.ToUpper(key))
73}
74
75// match a line of config var=value
76var matchLine = regexp.MustCompile(`^([a-zA-Z_]+)=(.*)$`)

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…