package main type dict struct { hostname string languageEn string searchStr string } var EN = dict{ hostname: "en.arns.lt", languageEn: "English", searchStr: "Input searching tag, created date or word in description", } var SGS = dict{ hostname: "en.arns.lt", languageEn: "Samogitian", searchStr: "Ivesk ėiškuoma žīma, sokūrėma data arba žuodi ėš aprašīma", } func Dict() dict { dictMap := map[string]dict{ "en": EN, "sgs": SGS, } return dictMap[defaultLang] }