Skip to content

Proposition #2

@PaulB2Code

Description

@PaulB2Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions