code: func getLocation() (*Data, error) {
  	response, err := http.Get(URL)
  	if err != nil {
  		return nil, err
  	}
  	defer response.Body.Close()
  	r := &Data{}
  	if err = json.NewDecoder(response.Body).Decode(&r); err != nil {
  		return nil, err
  	}
  	return r, nil
  }
docs: // getLocation will get the location details for where this
  // application has been run from.