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

Function GetFilterAppKey

common/regexp.go:109–111  ·  view source on GitHub ↗

GetFilterAppKey 从标准格式appkey{abc}中取得key abc

(s string)

Source from the content-addressed store, hash-verified

107
108// GetFilterAppKey 从标准格式appkey{abc}中取得key abc
109func GetFilterAppKey(s string) string {
110 return filterAppKeyRegexp.ReplaceAllString(s, "$1")
111}
112
113func SetFilterAppKey(key string) string {
114 return fmt.Sprintf("appkey{%s}", key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected