Alternatively:
enclave, err := secret.GetEnclave() // err contains whether the platform doesn't support it enclave.Do(f)