MCPcopy Create free account
hub / github.com/corestoreio/pkg / ToEnvVar

Function ToEnvVar

config/storage/env.go:46–55  ·  view source on GitHub ↗

ToEnvVar converts a Path to a valid environment key. Returns an empty string in case of an error. scope.DefaultTypeID, etc/credentials/user_name => CONFIG__ETCD__CREDENTIALS__USER_NAME

(p config.Path)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

WriteStringMethod · 0.80
AppendFQMethod · 0.80
ReplaceMethod · 0.80
GetMethod · 0.65
StringMethod · 0.65
PutMethod · 0.45

Tested by

no test coverage detected