MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / NewNormalizer

Function NewNormalizer

internal/model/normalize.go:14–20  ·  view source on GitHub ↗
(baseLocale string, availableLocales map[string]string)

Source from the content-addressed store, hash-verified

12}
13
14func NewNormalizer(baseLocale string, availableLocales map[string]string) Normalizer {
15 cloned := make(map[string]string, len(availableLocales))
16 for code, name := range availableLocales {
17 cloned[code] = name
18 }
19 return Normalizer{baseLocale: baseLocale, locales: cloned}
20}
21
22func (n Normalizer) NormalizeChannels(payload any) []ChannelSubscription {
23 items, ok := payload.([]any)

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected