Write an example code in golang to decode the json file
user
Here is an example of code in golang to decode the json file:

import (
"fmt"
"encoding/json"
"io/ioutil"
)
type Person struct {
Name string
Age int
}

func ReadJSON(path string) (person *Person) {
data, _ := ioutil.ReadFile(path)
json.Unmarshal(data, &person)
return
assistant