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

Function IsLocale

util/validation/validator.go:737–747  ·  view source on GitHub ↗

IsLocale checks case-insensitive if the provided string is a locale.

(lcid string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

BenchmarkIsLocaleFunction · 0.85
TestIsLocaleFunction · 0.85

Calls 2

WriteRuneMethod · 0.80
StringMethod · 0.65

Tested by 2

BenchmarkIsLocaleFunction · 0.68
TestIsLocaleFunction · 0.68