code: func GenerateIDWithAlg(customIDgenAlg string, payload []byte) (string, error) {
  	if customIDgenAlg == "" {
  		customIDgenAlg = defaultAlg
  	}
  	var alg = availableIDgenAlgs[customIDgenAlg]
  	if alg.hashFun != nil {
  		return alg.hashFun(payload), nil
  	}
  	return "", fmt.Errorf("Wrong ID generation algorithm was given: %s", customIDgenAlg)
  }
docs: // GenerateIDWithAlg generates an ID using a custom algorithm