feat(deps): Add support for more departments

This commit is contained in:
pakintada@gmail.com 2024-06-19 13:56:56 +07:00
parent bdf2fac1ad
commit 4369ebb2a5
19 changed files with 296 additions and 169 deletions

View file

@ -140,20 +140,20 @@ type CountryNamePerms struct {
func LoadCountrySettingsWithPermissions() []CountryNamePerms {
res := make([]CountryNamePerms, 0)
path, err := os.Getwd()
if err != nil {
log.Println(err)
}
fmt.Println(path)
// path, err := os.Getwd()
// if err != nil {
// log.Println(err)
// }
// fmt.Println(path)
files, err := os.ReadDir(path)
if err != nil {
log.Fatalln(err)
}
// files, err := os.ReadDir(path)
// if err != nil {
// log.Fatalln(err)
// }
for _, file := range files {
fmt.Println(file.Name(), file.IsDir())
}
// for _, file := range files {
// fmt.Println(file.Name(), file.IsDir())
// }
// read file country.settings.json
content, err := os.Open("./country.settings.json")