code: func unmarshal(data []byte, ext string) *config {
  	var config *config
  	var err error
  	if ext == ".json" {
  		err = json.Unmarshal(data, &config)
  	} else if ext == ".yml" || ext == ".yaml" {
  		err = yaml.Unmarshal(data, &config)
  	} else {
  		panic(StatusError{errors.New("Unrecognized file extension"), 65})
  	}
  	if err != nil {
  		err = displaySyntaxError(data, err)
  		panic(StatusError{err, 65})
  	}
  	return config
  }
docs: // unmarshal converts either JSON
  // or YAML into a config object.