code: func GetGenericCredential(targetName string) (*GenericCredential, error) {
  	cred, err := sysCredRead(targetName, sysCRED_TYPE_GENERIC)
  	if cred != nil {
  		return &GenericCredential{*cred}, err
  	}
  	return nil, err
  }
docs: // GetGenericCredential fetches the generic credential with the given name from Windows credential manager.
  // It returns nil and an error if the credential could not be found or an error occurred.