MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / GetVariableKey

Function GetVariableKey

common/regexp.go:104–106  ·  view source on GitHub ↗

GetVariableKey 从环境变量标准格式${abc}中取得key abc

(s string)

Source from the content-addressed store, hash-verified

102
103// GetVariableKey 从环境变量标准格式${abc}中取得key abc
104func GetVariableKey(s string) string {
105 return variableRegexp.ReplaceAllString(s, "$1")
106}
107
108// GetFilterAppKey 从标准格式appkey{abc}中取得key abc
109func GetFilterAppKey(s string) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected