code: func LoadFile(reader io.Reader) (*Bundlefile, error) {
  	bundlefile := &Bundlefile{}
  
  	decoder := json.NewDecoder(reader)
  	if err := decoder.Decode(bundlefile); err != nil {
  		switch jsonErr := err.(type) {
  		case *json.SyntaxError:
  			return nil, errors.Errorf(
  				"JSON syntax error at byte %v: %s",
  				jsonErr.Offset,
  				jsonErr.Error())
  		case *json.UnmarshalTypeError:
  			return nil, errors.Errorf(
  				"Unexpected type at byte %v. Expected %s but received %s.",
  				jsonErr.Offset,
  				jsonErr.Type,
  				jsonErr.Value)
  		}
  		return nil, err
  	}
  
  	return bundlefile, nil
  }
docs: // LoadFile loads a bundlefile from a path to the file