MCPcopy Create free account
hub / github.com/cel-expr/cel-go / makeMatcher

Function makeMatcher

ext/formatting.go:259–267  ·  view source on GitHub ↗
(locale string)

Source from the content-addressed store, hash-verified

257}
258
259func makeMatcher(locale string) (language.Matcher, error) {
260 tags := make([]language.Tag, 0)
261 tag, err := language.Parse(locale)
262 if err != nil {
263 return nil, err
264 }
265 tags = append(tags, tag)
266 return language.NewMatcher(tags), nil
267}
268
269type stringFormatter struct{}
270

Callers 1

matchLanguageFunction · 0.85

Calls 1

ParseMethod · 0.65

Tested by

no test coverage detected