utils/charset/mapping.go
Function initialiseMapping
has 380 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func initialiseMapping() {
mappingOnce.Do(func() {
// This mapping list was created based on the following indexes:
// - https://www.iana.org/assignments/character-sets/character-sets.xhtml
// - https://encoding.spec.whatwg.org/encodings.json