-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi,
DO you think it is possible to add a function:
// Read countries data file
func (country *Country) readCountriesExternalDataFile(dataFileName string ) *Country {
if len(country.data) > 0 {
return country
}
dataPath, _ := filepath.Abs(dataFileName)
file, _ := ioutil.ReadFile(dataPath)
json.Unmarshal([]byte(file), &country.data)
return country
}
For build in project.
Thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels