feat(deps): ✨ Add support for more departments
This commit is contained in:
parent
bdf2fac1ad
commit
4369ebb2a5
19 changed files with 296 additions and 169 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue